i
This commit is contained in:
parent
842fe81a05
commit
36320e48b7
@ -8,7 +8,7 @@ if os.path.exists(libdir):
|
||||
sys.path.append(libdir)
|
||||
|
||||
import logging
|
||||
from waveshare_epd import epd2in13_V2
|
||||
from waveshare_epd import epd2in13d
|
||||
import time
|
||||
from PIL import Image,ImageDraw,ImageFont
|
||||
import traceback
|
||||
@ -22,10 +22,10 @@ Connected = False
|
||||
try:
|
||||
logging.info("epd2in13bc Demo")
|
||||
|
||||
epd = epd2in13_V2.EPD()
|
||||
epd = epd2in13d.EPD()
|
||||
logging.info("init and Clear")
|
||||
epd.init(epd.FULL_UPDATE)
|
||||
epd.Clear(0xFF)
|
||||
epd.init()
|
||||
epd.Clear()
|
||||
time.sleep(0.5)
|
||||
|
||||
# Drawing on the image
|
||||
@ -52,7 +52,7 @@ except IOError as e:
|
||||
|
||||
except KeyboardInterrupt:
|
||||
logging.info("ctrl + c:")
|
||||
epd2in13_V2.epdconfig.module_exit()
|
||||
epd2in13d.epdconfig.module_exit()
|
||||
exit()
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user