This commit is contained in:
Robert Borzutzki 2022-10-20 11:43:24 +02:00
parent 1d00cd9047
commit 2f27e65996

View File

@ -8,7 +8,7 @@ if os.path.exists(libdir):
sys.path.append(libdir) sys.path.append(libdir)
import logging import logging
from epd import epd2in13d from waveshare_epd import epd2in13d
import time import time
from PIL import Image,ImageDraw,ImageFont from PIL import Image,ImageDraw,ImageFont
import traceback import traceback
@ -34,8 +34,8 @@ client_id = "solarmonitor"
try: try:
epd = epd2in13d.EPD() epd = epd2in13d.EPD()
logging.debug("init and Clear") logging.debug("init and Clear")
epd.init(epd.FULL_UPDATE) epd.init()
epd.Clear(0xFF) epd.Clear()
#time.sleep(1) #time.sleep(1)
except IOError as e: except IOError as e:
@ -43,7 +43,7 @@ except IOError as e:
except KeyboardInterrupt: except KeyboardInterrupt:
logging.info("ctrl + c:") logging.info("ctrl + c:")
epd.Clear(0xFF) epd.Clear()
epd2in13d.epdconfig.module_exit() epd2in13d.epdconfig.module_exit()
exit() exit()