update 2.9d&4.2, fix 5.65f&2.66b
This commit is contained in:
parent
17921b3b11
commit
2613454540
60 changed files with 805 additions and 328 deletions
|
|
@ -49,7 +49,7 @@ try:
|
|||
epd.display(epd.getbuffer(Himage))
|
||||
time.sleep(3)
|
||||
|
||||
logging.info("2.Drawing on the Vertical image...")
|
||||
# logging.info("2.Drawing on the Vertical image...")
|
||||
Himage = Image.new('RGB', (epd.height, epd.width), 0xffffff) # 255: clear the frame
|
||||
draw = ImageDraw.Draw(Himage)
|
||||
draw.text((10, 0), 'hello world', font = font24, fill = 0)
|
||||
|
|
@ -72,24 +72,14 @@ try:
|
|||
time.sleep(3)
|
||||
|
||||
logging.info("3.read bmp file")
|
||||
Himage = Image.open(os.path.join(picdir, '5in65f0.bmp'))
|
||||
epd.display(epd.getbuffer(Himage))
|
||||
time.sleep(3)
|
||||
|
||||
Himage = Image.open(os.path.join(picdir, '5in65f.bmp'))
|
||||
epd.display(epd.getbuffer(Himage))
|
||||
time.sleep(3)
|
||||
|
||||
Himage = Image.open(os.path.join(picdir, '5in65f2.bmp'))
|
||||
epd.display(epd.getbuffer(Himage))
|
||||
time.sleep(3)
|
||||
|
||||
|
||||
Himage = Image.open(os.path.join(picdir, '5in65f3.bmp'))
|
||||
epd.display(epd.getbuffer(Himage))
|
||||
time.sleep(3)
|
||||
|
||||
|
||||
Himage = Image.open(os.path.join(picdir, '5in65f4.bmp'))
|
||||
epd.display(epd.getbuffer(Himage))
|
||||
time.sleep(3)
|
||||
|
||||
epd.Clear()
|
||||
logging.info("Goto Sleep...")
|
||||
epd.sleep()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue