Skip to content

Commit befef95

Browse files
authored
Merge pull request #51 from icegoat9/master
minor fix to size of demo box; update comments for new mono displays
2 parents 042a433 + a2b8ce8 commit befef95

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

examples/epd_pillow_demo.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
# give them all to our driver
4242
# display = Adafruit_SSD1608(200, 200, # 1.54" HD mono display
4343
# display = Adafruit_SSD1675(122, 250, # 2.13" HD mono display
44-
# display = Adafruit_SSD1680(122, 250, # 2.13" HD Tri-color display
44+
# display = Adafruit_SSD1680(122, 250, # 2.13" HD Tri-color or mono display
4545
# display = Adafruit_SSD1681(200, 200, # 1.54" HD Tri-color display
4646
# display = Adafruit_IL91874(176, 264, # 2.7" Tri-color display
4747
# display = Adafruit_IL0373(152, 152, # 1.54" Tri-color display
@@ -70,7 +70,7 @@
7070
draw = ImageDraw.Draw(image)
7171

7272
# Draw a filled box as the background
73-
draw.rectangle((0, 0, display.width, display.height), fill=BACKGROUND_COLOR)
73+
draw.rectangle((0, 0, display.width - 1, display.height - 1), fill=BACKGROUND_COLOR)
7474

7575
# Draw a smaller inner foreground rectangle
7676
draw.rectangle(

examples/epd_pillow_image.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
# give them all to our driver
3333
# display = Adafruit_SSD1608(200, 200, # 1.54" HD mono display
3434
# display = Adafruit_SSD1675(122, 250, # 2.13" HD mono display
35-
# display = Adafruit_SSD1680(122, 250, # 2.13" HD Tri-color display
35+
# display = Adafruit_SSD1680(122, 250, # 2.13" HD Tri-color or mono display
3636
# display = Adafruit_SSD1681(200, 200, # 1.54" HD Tri-color display
3737
# display = Adafruit_IL91874(176, 264, # 2.7" Tri-color display
3838
# display = Adafruit_IL0373(152, 152, # 1.54" Tri-color display

0 commit comments

Comments
 (0)