add sleep
This commit is contained in:
parent
d1f4057edf
commit
79deb2c7a5
@ -85,6 +85,7 @@ def on_message(client, userdata, msg):
|
||||
values_draw.rectangle((150, line, 220, 50), fill = 255)
|
||||
values_draw.text((150, line), msg.payload.decode(), font = font10, fill = 0)
|
||||
epd.DisplayPartial(epd.getbuffer(values_image))
|
||||
time.sleep(1)
|
||||
#print(f"`{msg.topic}`: `{msg.payload.decode()}`")
|
||||
|
||||
Connected = False #global variable for the state of the connection
|
||||
|
Loading…
Reference in New Issue
Block a user