The 1in54_V2 program uses external waveform, Improved refresh speed and compatibility

This commit is contained in:
SSYYL 2021-07-16 14:46:14 +08:00
parent 452880de52
commit 07230521f9
9 changed files with 212 additions and 77 deletions

View file

@ -21,7 +21,7 @@ try:
epd = epd1in54_V2.EPD()
logging.info("init and Clear")
epd.init()
epd.init(0)
epd.Clear(0xFF)
time.sleep(1)
@ -67,6 +67,7 @@ try:
# Image.new('1', (epd.width, epd.height), 255)
epd.displayPartBaseImage(epd.getbuffer(time_image))
epd.init(1) # into partial refresh mode
time_draw = ImageDraw.Draw(time_image)
num = 0
while (True):
@ -80,7 +81,7 @@ try:
break
logging.info("Clear...")
epd.init()
epd.init(0)
epd.Clear(0xFF)
logging.info("Goto Sleep...")