Added 2.36inch e-Paper (G) program and some fixes.
This commit is contained in:
parent
7f6b83f97c
commit
335392a396
41 changed files with 3920 additions and 595 deletions
|
@ -31,7 +31,7 @@ try:
|
|||
Himage = Image.new('RGB', (epd.width, epd.height), epd.WHITE) # 255: clear the frame
|
||||
draw = ImageDraw.Draw(Himage)
|
||||
draw.text((5, 0), 'hello world', font = font18, fill = epd.RED)
|
||||
draw.text((5, 20), '7.3inch e-Paper', font = font24, fill = epd.YELLOW)
|
||||
draw.text((5, 20), '4.37inch e-Paper', font = font24, fill = epd.YELLOW)
|
||||
draw.text((5, 45), u'微雪电子', font = font40, fill = epd.BLACK)
|
||||
draw.text((5, 85), u'微雪电子', font = font40, fill = epd.YELLOW)
|
||||
draw.text((5, 125), u'微雪电子', font = font40, fill = epd.RED)
|
||||
|
@ -46,7 +46,7 @@ try:
|
|||
time.sleep(3)
|
||||
|
||||
# read bmp file
|
||||
logging.info("3.read image file")
|
||||
logging.info("2.read image file")
|
||||
Himage = Image.open(os.path.join(picdir, '4in37g0.jpg'))
|
||||
epd.display(epd.getbuffer(Himage))
|
||||
time.sleep(3)
|
||||
|
@ -56,7 +56,7 @@ try:
|
|||
epd.display(epd.getbuffer(Himage))
|
||||
time.sleep(3)
|
||||
|
||||
logging.info("3.read image file")
|
||||
logging.info("4.read image file")
|
||||
Himage = Image.open(os.path.join(picdir, '4in37g2.jpg'))
|
||||
epd.display(epd.getbuffer(Himage))
|
||||
time.sleep(3)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue