change to version2

This commit is contained in:
Robert Borzutzki 2022-10-19 13:02:51 +02:00
parent d1d85283e9
commit 71c72befe3

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 epd2in13b_V3 from waveshare_epd import epd2in13b_V2
import time import time
from PIL import Image,ImageDraw,ImageFont from PIL import Image,ImageDraw,ImageFont
import traceback import traceback
@ -22,7 +22,7 @@ Connected = False
try: try:
logging.info("epd2in13bc Demo") logging.info("epd2in13bc Demo")
epd = epd2in13b_V3.EPD() epd = epd2in13b_V2.EPD()
logging.info("init and Clear") logging.info("init and Clear")
epd.init() epd.init()
epd.Clear() epd.Clear()
@ -52,7 +52,7 @@ except IOError as e:
except KeyboardInterrupt: except KeyboardInterrupt:
logging.info("ctrl + c:") logging.info("ctrl + c:")
epd2in13bc.epdconfig.module_exit() epd2in13b_V2.epdconfig.module_exit()
exit() exit()