Added 2.36inch e-Paper (G) program and some fixes.

This commit is contained in:
SSYYL 2022-08-18 11:31:38 +08:00
parent 7f6b83f97c
commit 335392a396
41 changed files with 3920 additions and 595 deletions

View file

@ -47,7 +47,7 @@ try:
# Switch width and height for landscape display
epd.init()
logging.info("1.Drawing on the image...")
logging.info("2.Drawing on the image...")
Himage = Image.new('RGB', (epd.height, epd.width), epd.WHITE)
draw = ImageDraw.Draw(Himage)
draw.text((5, 0), 'hello world', font = font18, fill = epd.RED)
@ -72,13 +72,13 @@ try:
time.sleep(3)
epd.init()
logging.info("3.read bmp file")
logging.info("4.read bmp file")
Himage = Image.open(os.path.join(picdir, '3inch-2.bmp'))
epd.display(epd.getbuffer(Himage))
time.sleep(3)
epd.init()
logging.info("3.read bmp file")
logging.info("5.read bmp file")
Himage = Image.open(os.path.join(picdir, '3inch-3.bmp'))
epd.display(epd.getbuffer(Himage))
time.sleep(3)