From 7e13713d42c33259b005df516a5b22dec995da12 Mon Sep 17 00:00:00 2001 From: Robert Borzutzki Date: Wed, 19 Oct 2022 13:51:06 +0200 Subject: [PATCH] fix --- examples/mqtt.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/examples/mqtt.py b/examples/mqtt.py index ed7af66..279b940 100644 --- a/examples/mqtt.py +++ b/examples/mqtt.py @@ -44,7 +44,7 @@ try: drawblack.text((5, 45), 'Batterie %', font = font10, fill = 0) drawblack.text((5, 60), 'Batterie Laden/Entladen', font = font10, fill = 0) #epd.display(epd.getbuffer(HBlackimage), epd.getbuffer(HRedimage)) - epd.display(epd.getbuffer(HBlackimage)) + epd.DisplayPartial(epd.getbuffer(HBlackimage)) time.sleep(2) except IOError as e: @@ -78,8 +78,6 @@ def on_message(client, userdata, msg): line = 60 print(line) - epd.init() - epd.Clear() values_image = Image.new('1', (epd.width, epd.height), 255) values_draw = ImageDraw.Draw(values_image)