Speed up the refresh of some screens (experimental)(1.54 v2、2.13 v3、2.9 v2、7.5 v2)

This commit is contained in:
SSYYL 2021-07-15 15:11:46 +08:00
commit 452880de52
16 changed files with 432 additions and 74 deletions

View file

@ -41,6 +41,7 @@ try:
draw.arc((140, 50, 190, 100), 0, 360, fill = 0)
draw.rectangle((80, 50, 130, 100), fill = 0)
draw.chord((200, 50, 250, 100), 0, 360, fill = 0)
# Himage = Himage.transpose(method=Image.ROTATE_180)
epd.display(epd.getbuffer(Himage))
time.sleep(2)

View file

@ -36,7 +36,7 @@ try:
drawblack = ImageDraw.Draw(HBlackimage)
drawry = ImageDraw.Draw(HRYimage)
drawblack.text((10, 0), 'hello world', font = font24, fill = 0)
drawblack.text((10, 20), '5.83inch e-Paper bc', font = font24, fill = 0)
drawblack.text((10, 20), '5.83inch e-Paper b V2', font = font24, fill = 0)
drawblack.text((150, 0), u'微雪电子', font = font24, fill = 0)
drawblack.line((20, 50, 70, 100), fill = 0)
drawblack.line((70, 50, 20, 100), fill = 0)
@ -57,7 +57,7 @@ try:
drawry = ImageDraw.Draw(LRYimage)
drawblack.text((2, 0), 'hello world', font = font18, fill = 0)
drawblack.text((2, 20), '5.83inch epd bc', font = font18, fill = 0)
drawblack.text((2, 20), '5.83inch epd b V2', font = font18, fill = 0)
drawblack.text((20, 50), u'微雪电子', font = font18, fill = 0)
drawblack.line((10, 90, 60, 140), fill = 0)
drawblack.line((60, 90, 10, 140), fill = 0)

View file

@ -67,8 +67,8 @@ try:
time.sleep(2)
logging.info("3.read bmp file")
Himage = Image.open(os.path.join(picdir, '7in5_V2_r.bmp'))
Himage_Other = Image.open(os.path.join(picdir, '7in5_V2_b.bmp'))
Himage = Image.open(os.path.join(picdir, '7in5_V2_b.bmp'))
Himage_Other = Image.open(os.path.join(picdir, '7in5_V2_r.bmp'))
epd.display(epd.getbuffer(Himage),epd.getbuffer(Himage_Other))
time.sleep(2)

Binary file not shown.

Before

Width:  |  Height:  |  Size: 23 KiB

After

Width:  |  Height:  |  Size: 23 KiB

Before After
Before After

Binary file not shown.

After

Width:  |  Height:  |  Size: 39 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 788 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 23 KiB