Skip to content

Commit dfff3b6

Browse files
authored
Merge pull request #9 from dave-ct/128
Update ssd1680_simpletest.py
2 parents cf26734 + 9151c72 commit dfff3b6

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

adafruit_ssd1680.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
1919
* `Adafruit 2.13" Tri-Color eInk Display Breakout <https://www.adafruit.com/product/4947>`_
2020
* `Adafruit 2.13" Tri-Color eInk Display FeatherWing <https://www.adafruit.com/product/4814>`_
21+
* `Adafruit 2.13" Mono eInk Display FeatherWing <https://www.adafruit.com/product/4195>`_
2122
2223
2324
**Software and Dependencies:**
@@ -64,6 +65,8 @@ class SSD1680(displayio.EPaperDisplay):
6465
"""
6566

6667
def __init__(self, bus: displayio.Fourwire, **kwargs) -> None:
68+
if "colstart" not in kwargs:
69+
kwargs["colstart"] = 1
6770
stop_sequence = bytearray(_STOP_SEQUENCE)
6871
try:
6972
bus.reset()
@@ -95,6 +98,5 @@ def __init__(self, bus: displayio.Fourwire, **kwargs) -> None:
9598
set_current_column_command=0x4E,
9699
set_current_row_command=0x4F,
97100
refresh_display_command=0x20,
98-
colstart=1,
99101
always_toggle_chip_select=True,
100102
)

examples/ssd1680_simpletest.py

+7
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@
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 FeatherWing
13+
* https://www.adafruit.com/product/4195
14+
15+
1216
"""
1317

1418
import time
@@ -30,15 +34,18 @@
3034
)
3135
time.sleep(1)
3236

37+
# For issues with display not updating top/bottom rows correctly set colstart to 8
3338
display = adafruit_ssd1680.SSD1680(
3439
display_bus,
40+
colstart=1,
3541
width=250,
3642
height=122,
3743
busy_pin=epd_busy,
3844
highlight_color=0xFF0000,
3945
rotation=270,
4046
)
4147

48+
4249
g = displayio.Group()
4350

4451
with open("/display-ruler.bmp", "rb") as f:

0 commit comments

Comments
 (0)