Skip to content
Merged
Show file tree
Hide file tree
Changes from 4 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
6 changes: 4 additions & 2 deletions 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 @@ -51,6 +52,7 @@ class SSD1680(displayio.EPaperDisplay):
r"""SSD1680 driver

:param bus: The data bus the display is on
:param column_correction: Adjust colstart, defaults to 1 (``int``)
:param \**kwargs:
See below

Expand All @@ -63,7 +65,7 @@ class SSD1680(displayio.EPaperDisplay):
Display rotation
"""

def __init__(self, bus: displayio.Fourwire, **kwargs) -> None:
def __init__(self, bus: displayio.Fourwire, column_correction=1, **kwargs) -> None:
stop_sequence = bytearray(_STOP_SEQUENCE)
try:
bus.reset()
Expand Down Expand Up @@ -95,6 +97,6 @@ def __init__(self, bus: displayio.Fourwire, **kwargs) -> None:
set_current_column_command=0x4E,
set_current_row_command=0x4F,
refresh_display_command=0x20,
colstart=1,
colstart=column_correction,
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 column_correction to 8
display = adafruit_ssd1680.SSD1680(
display_bus,
column_correction=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