commented out some background pic for now as its not working

This commit is contained in:
phixxy 2024-02-03 01:34:58 -08:00
parent f269d4eba8
commit ead7997a8c

View file

@ -34,11 +34,11 @@ class InkyScreen(commands.Cog):
async def write_to_display(self, text: list): async def write_to_display(self, text: list):
if text is not self.old_message: if text is not self.old_message:
try: #try:
image = Image.open("data/inky/bg.png") # image = Image.open("data/inky/bg.png")
except: #except:
self.bot.logger.exception("InkyScreen: Failed to load background image.") # self.bot.logger.exception("InkyScreen: Failed to load background image.")
image = Image.new("P", (self.display.WIDTH, self.display.HEIGHT), (self.display.BLACK)) image = Image.new("P", (self.display.WIDTH, self.display.HEIGHT), (self.display.BLACK))
draw = ImageDraw.Draw(image) draw = ImageDraw.Draw(image)
width = self.display.WIDTH width = self.display.WIDTH
height = self.display.HEIGHT height = self.display.HEIGHT