ööö
This commit is contained in:
parent
e97f6179ba
commit
094db8dd51
@ -38,7 +38,7 @@ try:
|
|||||||
logging.info("init and Clear")
|
logging.info("init and Clear")
|
||||||
epd.init()
|
epd.init()
|
||||||
epd.Clear()
|
epd.Clear()
|
||||||
time.sleep(0.5)
|
time.sleep(1)
|
||||||
|
|
||||||
# Drawing on the image
|
# Drawing on the image
|
||||||
logging.info("Drawing")
|
logging.info("Drawing")
|
||||||
@ -58,7 +58,7 @@ try:
|
|||||||
#epd.display(epd.getbuffer(HBlackimage), epd.getbuffer(HRedimage))
|
#epd.display(epd.getbuffer(HBlackimage), epd.getbuffer(HRedimage))
|
||||||
epd.display(epd.getbuffer(HBlackimage))
|
epd.display(epd.getbuffer(HBlackimage))
|
||||||
|
|
||||||
time.sleep(2)
|
#time.sleep(1)
|
||||||
|
|
||||||
except IOError as e:
|
except IOError as e:
|
||||||
logging.info(e)
|
logging.info(e)
|
||||||
@ -153,11 +153,11 @@ try:
|
|||||||
drawblack.rectangle((150, 30, 220, 50), fill = 255)
|
drawblack.rectangle((150, 30, 220, 50), fill = 255)
|
||||||
drawblack.text((150, 30), value_energyImportExport, font = font10, fill = 0)
|
drawblack.text((150, 30), value_energyImportExport, font = font10, fill = 0)
|
||||||
drawblack.rectangle((150, 45, 220, 50), fill = 255)
|
drawblack.rectangle((150, 45, 220, 50), fill = 255)
|
||||||
drawblack.text((150, 45), value_houseBatteryLoadUnload, font = font10, fill = 0)
|
drawblack.text((150, 45), value_houseBatterySoC, font = font10, fill = 0)
|
||||||
drawblack.rectangle((150, 60, 220, 50), fill = 1)
|
drawblack.rectangle((150, 60, 220, 50), fill = 1)
|
||||||
drawblack.text((150, 60), value_houseBatteryLoadUnload, font = font10, fill = 0)
|
drawblack.text((150, 60), value_houseBatteryLoadUnload, font = font10, fill = 0)
|
||||||
|
|
||||||
epd.DisplayPartial(epd.getbuffer(HBlackimage))
|
epd.display(epd.getbuffer(HBlackimage))
|
||||||
|
|
||||||
except KeyboardInterrupt:
|
except KeyboardInterrupt:
|
||||||
print("exiting")
|
print("exiting")
|
||||||
|
Loading…
Reference in New Issue
Block a user