displayPartial

This commit is contained in:
Robert Borzutzki 2022-10-19 11:56:39 +02:00
parent 81532fc0dd
commit 89faaee9d6

View File

@ -24,7 +24,7 @@ try:
epd = epd2in13b_V4.EPD() epd = epd2in13b_V4.EPD()
logging.info("init and Clear") logging.info("init and Clear")
epd.init(1) epd.init()
epd.Clear() epd.Clear()
time.sleep(0.5) time.sleep(0.5)
@ -79,7 +79,7 @@ def on_message(client, userdata, msg):
print(line) print(line)
drawblack.text((150, line), msg.payload.decode(), font = font10, fill = 0) drawblack.text((150, line), msg.payload.decode(), font = font10, fill = 0)
epd.display(epd.getbuffer(HBlackimage), epd.getbuffer(HRedimage)) epd.displayPartial(epd.getbuffer(HBlackimage), epd.getbuffer(HRedimage))
#print(f"`{msg.topic}`: `{msg.payload.decode()}`") #print(f"`{msg.topic}`: `{msg.payload.decode()}`")
Connected = False #global variable for the state of the connection Connected = False #global variable for the state of the connection