From 2f27e659967c73e30b2079f104b9a46f478ad71b Mon Sep 17 00:00:00 2001 From: Robert Borzutzki Date: Thu, 20 Oct 2022 11:43:24 +0200 Subject: [PATCH] fix --- examples/solarmonitor-black.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/examples/solarmonitor-black.py b/examples/solarmonitor-black.py index 90b51e2..c68fc96 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 epd import epd2in13d +from waveshare_epd import epd2in13d import time from PIL import Image,ImageDraw,ImageFont import traceback @@ -34,8 +34,8 @@ client_id = "solarmonitor" try: epd = epd2in13d.EPD() logging.debug("init and Clear") - epd.init(epd.FULL_UPDATE) - epd.Clear(0xFF) + epd.init() + epd.Clear() #time.sleep(1) except IOError as e: @@ -43,7 +43,7 @@ except IOError as e: except KeyboardInterrupt: logging.info("ctrl + c:") - epd.Clear(0xFF) + epd.Clear() epd2in13d.epdconfig.module_exit() exit()