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