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()