From a2b8ce82e8fe2161f0517e8f074bf87a2d294d40 Mon Sep 17 00:00:00 2001 From: icegoat9 <85364179+icegoat9@users.noreply.github.com> Date: Fri, 4 Jun 2021 17:06:02 -0700 Subject: [PATCH] minor fix to size of demo box; update comments for new mono displays --- examples/epd_pillow_demo.py | 4 ++-- examples/epd_pillow_image.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/epd_pillow_demo.py b/examples/epd_pillow_demo.py index 50cc615..ab37bb1 100644 --- a/examples/epd_pillow_demo.py +++ b/examples/epd_pillow_demo.py @@ -41,7 +41,7 @@ # give them all to our driver # display = Adafruit_SSD1608(200, 200, # 1.54" HD mono display # display = Adafruit_SSD1675(122, 250, # 2.13" HD mono display -# display = Adafruit_SSD1680(122, 250, # 2.13" HD Tri-color display +# display = Adafruit_SSD1680(122, 250, # 2.13" HD Tri-color or mono display # display = Adafruit_SSD1681(200, 200, # 1.54" HD Tri-color display # display = Adafruit_IL91874(176, 264, # 2.7" Tri-color display # display = Adafruit_IL0373(152, 152, # 1.54" Tri-color display @@ -70,7 +70,7 @@ draw = ImageDraw.Draw(image) # Draw a filled box as the background -draw.rectangle((0, 0, display.width, display.height), fill=BACKGROUND_COLOR) +draw.rectangle((0, 0, display.width - 1, display.height - 1), fill=BACKGROUND_COLOR) # Draw a smaller inner foreground rectangle draw.rectangle( diff --git a/examples/epd_pillow_image.py b/examples/epd_pillow_image.py index eefa11c..9051155 100644 --- a/examples/epd_pillow_image.py +++ b/examples/epd_pillow_image.py @@ -32,7 +32,7 @@ # give them all to our driver # display = Adafruit_SSD1608(200, 200, # 1.54" HD mono display # display = Adafruit_SSD1675(122, 250, # 2.13" HD mono display -# display = Adafruit_SSD1680(122, 250, # 2.13" HD Tri-color display +# display = Adafruit_SSD1680(122, 250, # 2.13" HD Tri-color or mono display # display = Adafruit_SSD1681(200, 200, # 1.54" HD Tri-color display # display = Adafruit_IL91874(176, 264, # 2.7" Tri-color display # display = Adafruit_IL0373(152, 152, # 1.54" Tri-color display