From 36320e48b7b53ca2581253217fbdbe99bddf1948 Mon Sep 17 00:00:00 2001 From: Robert Borzutzki Date: Wed, 19 Oct 2022 13:19:34 +0200 Subject: [PATCH] i --- examples/mqtt.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/examples/mqtt.py b/examples/mqtt.py index 7036b05..a0ad2f1 100644 --- a/examples/mqtt.py +++ b/examples/mqtt.py @@ -8,7 +8,7 @@ if os.path.exists(libdir): sys.path.append(libdir) import logging -from waveshare_epd import epd2in13_V2 +from waveshare_epd import epd2in13d import time from PIL import Image,ImageDraw,ImageFont import traceback @@ -22,10 +22,10 @@ Connected = False try: logging.info("epd2in13bc Demo") - epd = epd2in13_V2.EPD() + epd = epd2in13d.EPD() logging.info("init and Clear") - epd.init(epd.FULL_UPDATE) - epd.Clear(0xFF) + epd.init() + epd.Clear() time.sleep(0.5) # Drawing on the image @@ -52,7 +52,7 @@ except IOError as e: except KeyboardInterrupt: logging.info("ctrl + c:") - epd2in13_V2.epdconfig.module_exit() + epd2in13d.epdconfig.module_exit() exit()