From 89faaee9d62138c88f4125115c8076413f4fe781 Mon Sep 17 00:00:00 2001 From: Robert Borzutzki Date: Wed, 19 Oct 2022 11:56:39 +0200 Subject: [PATCH] displayPartial --- examples/mqtt.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/mqtt.py b/examples/mqtt.py index bdd0322..1922848 100644 --- a/examples/mqtt.py +++ b/examples/mqtt.py @@ -24,7 +24,7 @@ try: epd = epd2in13b_V4.EPD() logging.info("init and Clear") - epd.init(1) + epd.init() epd.Clear() time.sleep(0.5) @@ -79,7 +79,7 @@ def on_message(client, userdata, msg): print(line) drawblack.text((150, line), msg.payload.decode(), font = font10, fill = 0) - epd.display(epd.getbuffer(HBlackimage), epd.getbuffer(HRedimage)) + epd.displayPartial(epd.getbuffer(HBlackimage), epd.getbuffer(HRedimage)) #print(f"`{msg.topic}`: `{msg.payload.decode()}`") Connected = False #global variable for the state of the connection