From a5c09e6e9e6d69aab57667547aae466a61dae045 Mon Sep 17 00:00:00 2001 From: pepev-nrt Date: Sat, 25 Jan 2025 16:35:18 +0100 Subject: [PATCH] errors in display.py -> 2025-01-25 16:35:14 --- display/display.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/display/display.py b/display/display.py index 7b0f17e..9f8eb38 100644 --- a/display/display.py +++ b/display/display.py @@ -17,13 +17,13 @@ class DisplayHelper: self.screenwidth = width self.screenheight = height self.epd = eink.EPD() - self.epd.Init() + self.epd.init() def update(self, img): # Updates the display with the grayscale and red images # start displaying on eink display # self.epd.clear() - self.epd.display(mg) + self.epd.display(img) self.logger.info('E-Ink display update complete.') def calibrate(self, cycles=1): @@ -38,5 +38,5 @@ class DisplayHelper: def sleep(self): # send E-Ink display to deep sleep - self.epd.EPD_Sleep() + self.epd.sleep() self.logger.info('E-Ink display entered deep sleep.')