Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion adafruit_ssd1680.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@

* `Adafruit 2.13" Tri-Color eInk Display Breakout <https://www.adafruit.com/product/4947>`_
* `Adafruit 2.13" Tri-Color eInk Display FeatherWing <https://www.adafruit.com/product/4814>`_
* `Adafruit 2.13" Mono eInk Display FeatherWing <https://www.adafruit.com/product/4195>`_


**Software and Dependencies:**
Expand Down Expand Up @@ -64,6 +65,8 @@ class SSD1680(displayio.EPaperDisplay):
"""

def __init__(self, bus: displayio.Fourwire, **kwargs) -> None:
if "colstart" not in kwargs:
kwargs["colstart"] = 1
stop_sequence = bytearray(_STOP_SEQUENCE)
try:
bus.reset()
Expand Down Expand Up @@ -95,6 +98,5 @@ def __init__(self, bus: displayio.Fourwire, **kwargs) -> None:
set_current_column_command=0x4E,
set_current_row_command=0x4F,
refresh_display_command=0x20,
colstart=1,
always_toggle_chip_select=True,
)
7 changes: 7 additions & 0 deletions examples/ssd1680_simpletest.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@
* https://www.adafruit.com/product/4947
* Adafruit 2.13" Tri-Color eInk Display FeatherWing
* https://www.adafruit.com/product/4814
* Adafruit 2.13" Mono eInk Display FeatherWing
* https://www.adafruit.com/product/4195


"""

import time
Expand All @@ -30,15 +34,18 @@
)
time.sleep(1)

# For issues with display not updating top/bottom rows correctly set colstart to 8
display = adafruit_ssd1680.SSD1680(
display_bus,
colstart=1,
width=250,
height=122,
busy_pin=epd_busy,
highlight_color=0xFF0000,
rotation=270,
)


g = displayio.Group()

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