Skip to content

Commit 25131d7

Browse files
authored
Merge pull request #31 from makermelissa/main
Update simpletest for newer SSD1680 display
2 parents 8fed040 + c5fea2a commit 25131d7

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

examples/ssd1680_simpletest.py

+5-2
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,11 @@
99
* https://www.adafruit.com/product/4947
1010
* Adafruit 2.13" Tri-Color eInk Display FeatherWing
1111
* https://www.adafruit.com/product/4814
12+
* Adafruit 2.13" Mono eInk Display Breakout
13+
* https://www.adafruit.com/product/4197
1214
* Adafruit 2.13" Mono eInk Display FeatherWing
1315
* https://www.adafruit.com/product/4195
1416
15-
1617
"""
1718

1819
import time
@@ -35,19 +36,21 @@
3536
display_bus = FourWire(spi, command=epd_dc, chip_select=epd_cs, reset=epd_reset, baudrate=1000000)
3637
time.sleep(1)
3738

38-
# For issues with display not updating top/bottom rows correctly set colstart to 8
39+
# For issues with display not updating top/bottom rows correctly set colstart to 8, 0, or -8
3940
display = adafruit_ssd1680.SSD1680(
4041
display_bus,
4142
width=250,
4243
height=122,
4344
busy_pin=epd_busy,
4445
highlight_color=0xFF0000,
4546
rotation=270,
47+
colstart=-8, # Comment out for older displays
4648
)
4749

4850

4951
g = displayio.Group()
5052

53+
# Note: Check the name of the file. Sometimes the dash is changed to an underscore
5154
with open("/display-ruler.bmp", "rb") as f:
5255
pic = displayio.OnDiskBitmap(f)
5356
t = displayio.TileGrid(pic, pixel_shader=pic.pixel_shader)

0 commit comments

Comments
 (0)