plop
This commit is contained in:
parent
ce52a1d155
commit
3fb3c4f63f
10 changed files with 1079 additions and 0 deletions
18
display.py
Normal file
18
display.py
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
from lib import epd4in2
|
||||
import os
|
||||
#picdir = os.path.join(os.path.dirname(os.path.realpath(__file__)),'pic'
|
||||
from PIL import Image
|
||||
|
||||
epd = epd4in2.EPD()
|
||||
epd.init()
|
||||
|
||||
image = Image.open('./document_ready.bmp')
|
||||
image = image.convert('L')
|
||||
epd.display_4Gray(epd.getbuffer_4Gray(image))
|
||||
epd.sleep()
|
||||
|
||||
## version grayscale
|
||||
#epd.Init_4Gray()
|
||||
#Himage = Image.open(os.path.join(picdir, 'book_base.bmp'))
|
||||
#epd.display_4Gray(epd.getbuffer_4Gray(Himage))
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue