This commit is contained in:
Robert Borzutzki 2022-10-19 13:19:34 +02:00
parent 842fe81a05
commit 36320e48b7

View File

@ -8,7 +8,7 @@ if os.path.exists(libdir):
sys.path.append(libdir) sys.path.append(libdir)
import logging import logging
from waveshare_epd import epd2in13_V2 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
@ -22,10 +22,10 @@ Connected = False
try: try:
logging.info("epd2in13bc Demo") logging.info("epd2in13bc Demo")
epd = epd2in13_V2.EPD() epd = epd2in13d.EPD()
logging.info("init and Clear") logging.info("init and Clear")
epd.init(epd.FULL_UPDATE) epd.init()
epd.Clear(0xFF) epd.Clear()
time.sleep(0.5) time.sleep(0.5)
# Drawing on the image # Drawing on the image
@ -52,7 +52,7 @@ except IOError as e:
except KeyboardInterrupt: except KeyboardInterrupt:
logging.info("ctrl + c:") logging.info("ctrl + c:")
epd2in13_V2.epdconfig.module_exit() epd2in13d.epdconfig.module_exit()
exit() exit()