From 79deb2c7a5486f373b0e2214e6b5e92ba7169d90 Mon Sep 17 00:00:00 2001 From: Robert Borzutzki Date: Wed, 19 Oct 2022 15:14:24 +0200 Subject: [PATCH] add sleep --- examples/mqtt.py | 1 + 1 file changed, 1 insertion(+) diff --git a/examples/mqtt.py b/examples/mqtt.py index 6b868cf..0c1bc4d 100644 --- a/examples/mqtt.py +++ b/examples/mqtt.py @@ -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