From 463149a2ab0240fba37834e8f508fac271c9ad65 Mon Sep 17 00:00:00 2001 From: Robert Borzutzki Date: Wed, 19 Oct 2022 15:19:09 +0200 Subject: [PATCH] add 10 sec sleep --- examples/mqtt.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/mqtt.py b/examples/mqtt.py index b9c6303..7297026 100644 --- a/examples/mqtt.py +++ b/examples/mqtt.py @@ -82,10 +82,10 @@ def on_message(client, userdata, msg): line = 60 print(line) - drawblack.rectangle((150, line, 220, 50), fill = 0) + drawblack.rectangle((150, line, 220, 50), fill = 255) drawblack.text((150, line), msg.payload.decode(), font = font10, fill = 0) epd.DisplayPartial(epd.getbuffer(HBlackimage)) - time.sleep(1) + time.sleep(10) #print(f"`{msg.topic}`: `{msg.payload.decode()}`") Connected = False #global variable for the state of the connection