commented out some background pic for now as its not working
This commit is contained in:
parent
f269d4eba8
commit
ead7997a8c
1 changed files with 5 additions and 5 deletions
|
|
@ -34,11 +34,11 @@ class InkyScreen(commands.Cog):
|
|||
|
||||
async def write_to_display(self, text: list):
|
||||
if text is not self.old_message:
|
||||
try:
|
||||
image = Image.open("data/inky/bg.png")
|
||||
except:
|
||||
self.bot.logger.exception("InkyScreen: Failed to load background image.")
|
||||
image = Image.new("P", (self.display.WIDTH, self.display.HEIGHT), (self.display.BLACK))
|
||||
#try:
|
||||
# image = Image.open("data/inky/bg.png")
|
||||
#except:
|
||||
# self.bot.logger.exception("InkyScreen: Failed to load background image.")
|
||||
image = Image.new("P", (self.display.WIDTH, self.display.HEIGHT), (self.display.BLACK))
|
||||
draw = ImageDraw.Draw(image)
|
||||
width = self.display.WIDTH
|
||||
height = self.display.HEIGHT
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue