From 202800dad68032e5c4a40e5d3bd81e50788e678a Mon Sep 17 00:00:00 2001 From: Brian Y Date: Sat, 14 Dec 2019 16:38:01 -0500 Subject: [PATCH] changed example to use japanese font --- RaspberryPi&JetsonNano/python/examples/epd_2in7_test.py | 2 +- .../python/lib/waveshare_epd/epd2in7.py | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/RaspberryPi&JetsonNano/python/examples/epd_2in7_test.py b/RaspberryPi&JetsonNano/python/examples/epd_2in7_test.py index b0ba1bd..69ccecb 100644 --- a/RaspberryPi&JetsonNano/python/examples/epd_2in7_test.py +++ b/RaspberryPi&JetsonNano/python/examples/epd_2in7_test.py @@ -34,7 +34,7 @@ try: Himage = Image.new('1', (epd.height, epd.width), 255) # 255: clear the frame draw = ImageDraw.Draw(Himage) draw.text((10, 0), 'hello world', font = font24, fill = 0) - draw.text((150, 0), u'微雪电子', font = font24, fill = 0) + draw.text((150, 0), u'よろしく', font = font24, fill = 0) draw.line((20, 50, 70, 100), fill = 0) draw.line((70, 50, 20, 100), fill = 0) draw.rectangle((20, 50, 70, 100), outline = 0) diff --git a/RaspberryPi&JetsonNano/python/lib/waveshare_epd/epd2in7.py b/RaspberryPi&JetsonNano/python/lib/waveshare_epd/epd2in7.py index 245ee9a..3e08e7b 100644 --- a/RaspberryPi&JetsonNano/python/lib/waveshare_epd/epd2in7.py +++ b/RaspberryPi&JetsonNano/python/lib/waveshare_epd/epd2in7.py @@ -150,7 +150,7 @@ class EPD: lut_ww = [ # 0xA0, 0x0E, 0x00, 0x00, 0x00, 0x01, - 0xA0, 0x12, 0x12, 0x00, 0x00, 0x01, + 0xA0, 0x12, 0x12, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, @@ -160,7 +160,7 @@ class EPD: ] lut_bw = [ # 0xA0, 0x0E, 0x00, 0x00, 0x00, 0x01, - 0xA0, 0x12, 0x12, 0x00, 0x00, 0x01, + 0xA0, 0x12, 0x12, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, @@ -170,7 +170,7 @@ class EPD: ] lut_bb = [ # 0x50, 0x0E, 0x00, 0x00, 0x00, 0x01, - 0x50, 0x12, 0x12, 0x00, 0x00, 0x01, + 0x50, 0x12, 0x12, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, @@ -180,7 +180,7 @@ class EPD: ] lut_wb = [ # 0x50, 0x0E, 0x00, 0x00, 0x00, 0x01, - 0x50, 0x12, 0x12, 0x00, 0x00, 0x01, + 0x50, 0x12, 0x12, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,