add init and sleep

This commit is contained in:
robert 2024-02-01 20:54:48 +00:00
parent 37503c74b5
commit 9e73eccd7f

View File

@ -72,7 +72,7 @@ def monitor(charge_point_power):
epd = epd2in13b_V3.EPD()
#epd = epaper.epaper('epd2in13b_V3').EPD()
#logging.info("init and Clear")
#epd.init()
epd.init()
#epd.Clear()
# Drawing on the image
@ -103,7 +103,7 @@ def monitor(charge_point_power):
#epd.Clear()
logging.info("Goto Sleep...")
#epd.sleep()
epd.sleep()
#except IOError as e:
# logging.info(e)