add sleep

This commit is contained in:
Robert Borzutzki 2022-10-19 15:14:24 +02:00
parent d1f4057edf
commit 79deb2c7a5

View File

@ -85,6 +85,7 @@ def on_message(client, userdata, msg):
values_draw.rectangle((150, line, 220, 50), fill = 255) values_draw.rectangle((150, line, 220, 50), fill = 255)
values_draw.text((150, line), msg.payload.decode(), font = font10, fill = 0) values_draw.text((150, line), msg.payload.decode(), font = font10, fill = 0)
epd.DisplayPartial(epd.getbuffer(values_image)) epd.DisplayPartial(epd.getbuffer(values_image))
time.sleep(1)
#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