From 665b19c106b95eefe64e750ce95e8e4ae66a1f2e Mon Sep 17 00:00:00 2001 From: Robert Borzutzki Date: Thu, 20 Oct 2022 09:30:13 +0200 Subject: [PATCH] change to lib version2 --- examples/solarmonitor-black.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/examples/solarmonitor-black.py b/examples/solarmonitor-black.py index 125a5b5..2d04e87 100644 --- a/examples/solarmonitor-black.py +++ b/examples/solarmonitor-black.py @@ -8,7 +8,7 @@ if os.path.exists(libdir): sys.path.append(libdir) import logging -from waveshare_epd import epd2in13d +from waveshare_epd import epd2in13_V2 import time from PIL import Image,ImageDraw,ImageFont import traceback @@ -32,10 +32,10 @@ pw = "phio6yiR9ohs1veeghu4WaeGhaiRi8he4EiWasheev4faeku8tohdiuthah7zahP" client_id = "solarmonitor" try: - epd = epd2in13d.EPD() + epd = epd2in13_V2.EPD() logging.debug("init and Clear") - epd.init() - epd.Clear() + epd.init(epd.FULL_UPDATE) + epd.Clear(0xFF) #time.sleep(1) except IOError as e: @@ -44,7 +44,7 @@ except IOError as e: except KeyboardInterrupt: logging.info("ctrl + c:") epd.Clear() - epd2in13d.epdconfig.module_exit() + epd2in13_V2.epdconfig.module_exit() exit() def on_connect(client, userdata, flags, rc):