diff --git a/examples/solar-monitoring.py b/examples/solar-monitoring.py index c1328b4..ae31717 100644 --- a/examples/solar-monitoring.py +++ b/examples/solar-monitoring.py @@ -95,23 +95,23 @@ def monitor(charge_point_power): #drawblack.text((100, 80), str(charge_point_power), font = font16, fill = 0) - try: - epd.display(epd.getbuffer(HBlackimage), epd.getbuffer(HRYimage)) + + epd.display(epd.getbuffer(HBlackimage), epd.getbuffer(HRYimage)) - #logging.info("Clear...") - #epd.init() - #epd.Clear() - - logging.info("Goto Sleep...") - epd.sleep() + #logging.info("Clear...") + #epd.init() + #epd.Clear() + + logging.info("Goto Sleep...") + epd.sleep() - except IOError as e: - logging.info(e) + #except IOError as e: + # logging.info(e) - except KeyboardInterrupt: - logging.info("ctrl + c:") - epd2in13b_V3.epdconfig.module_exit() - exit() + #except KeyboardInterrupt: + # logging.info("ctrl + c:") + # epd2in13b_V3.epdconfig.module_exit() + # exit() #client.loop_forever()