This commit is contained in:
robert 2024-01-31 23:44:30 +00:00
parent 10a7712948
commit 4765690f8e
1 changed files with 43 additions and 39 deletions

View File

@ -72,7 +72,11 @@ def run():
car_soc = subscribe(client, topic_car_soc)
charge_point_power = subscribe(client, topic_charge_point_power)
try:
monitor(charge_point_power)
def monitor(charge_point_power)
try:
logging.info("epd2in13b_V3 Demo")
epd = epd2in13b_V3.EPD()
@ -108,10 +112,10 @@ try:
logging.info("Goto Sleep...")
epd.sleep()
except IOError as e:
except IOError as e:
logging.info(e)
except KeyboardInterrupt:
except KeyboardInterrupt:
logging.info("ctrl + c:")
epd2in13b_V3.epdconfig.module_exit()
exit()