Add Sunrise x3 Pi Python program, modify some programs to speed up data transfer.
This commit is contained in:
parent
979184d047
commit
88bbf456c6
28 changed files with 707 additions and 451 deletions
|
|
@ -21,7 +21,7 @@ try:
|
|||
epd = epd2in9d.EPD()
|
||||
logging.info("init and Clear")
|
||||
epd.init()
|
||||
epd.Clear(0xFF)
|
||||
epd.Clear()
|
||||
|
||||
font24 = ImageFont.truetype(os.path.join(picdir, 'Font.ttc'), 24)
|
||||
font18 = ImageFont.truetype(os.path.join(picdir, 'Font.ttc'), 18)
|
||||
|
|
@ -77,7 +77,7 @@ try:
|
|||
# # partial update
|
||||
logging.info("5.show time...")
|
||||
epd.init()
|
||||
epd.Clear(0xFF)
|
||||
epd.Clear()
|
||||
|
||||
time_image = Image.new('1', (epd.width, epd.height), 255)
|
||||
time_draw = ImageDraw.Draw(time_image)
|
||||
|
|
@ -94,7 +94,7 @@ try:
|
|||
|
||||
epd.init()
|
||||
logging.info("Clear...")
|
||||
epd.Clear(0xFF)
|
||||
epd.Clear()
|
||||
time.sleep(2)
|
||||
logging.info("Goto Sleep...")
|
||||
epd.sleep()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue