Add Sunrise x3 Pi Python program, modify some programs to speed up data transfer.

This commit is contained in:
SSYYL 2022-08-15 11:14:27 +08:00
parent 979184d047
commit 88bbf456c6
28 changed files with 709 additions and 453 deletions

View file

@ -22,7 +22,7 @@ try:
epd = epd2in13d.EPD()
logging.info("init and Clear")
epd.init()
epd.Clear(0xFF)
epd.Clear()
font15 = ImageFont.truetype(os.path.join(picdir, 'Font.ttc'), 15)
font24 = ImageFont.truetype(os.path.join(picdir, 'Font.ttc'), 24)
@ -60,7 +60,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)
# num = 0
@ -76,7 +76,7 @@ try:
logging.info("Clear...")
epd.init()
epd.Clear(0xFF)
epd.Clear()
logging.info("Goto Sleep...")
epd.sleep()