Skip to content

Commit 966bf35

Browse files
authored
Merge pull request #19 from makermelissa/fix-offset
Fix column offset for ssd1680 instead of ssd1675
2 parents e3791ca + 6e602b3 commit 966bf35

File tree

4 files changed

+5
-14
lines changed

4 files changed

+5
-14
lines changed

adafruit_ssd1680.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ class SSD1680(displayio.EPaperDisplay):
6868

6969
def __init__(self, bus: displayio.FourWire, **kwargs) -> None:
7070
if "colstart" not in kwargs:
71-
kwargs["colstart"] = 1
71+
kwargs["colstart"] = 8
7272
stop_sequence = bytearray(_STOP_SEQUENCE)
7373
try:
7474
bus.reset()

examples/ssd1680_2.13_featherwing.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,7 @@
4545
with open("/display-ruler.bmp", "rb") as f:
4646
pic = displayio.OnDiskBitmap(f)
4747

48-
t = displayio.TileGrid(
49-
pic, pixel_shader=getattr(pic, "pixel_shader", displayio.ColorConverter())
50-
)
48+
t = displayio.TileGrid(pic, pixel_shader=pic.pixel_shader)
5149

5250
g.append(t)
5351

examples/ssd1680_2.13_tricolor_breakout.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,7 @@
4444
with open("/display-ruler.bmp", "rb") as f:
4545
pic = displayio.OnDiskBitmap(f)
4646

47-
t = displayio.TileGrid(
48-
pic, pixel_shader=getattr(pic, "pixel_shader", displayio.ColorConverter())
49-
)
47+
t = displayio.TileGrid(pic, pixel_shader=pic.pixel_shader)
5048

5149
g.append(t)
5250

examples/ssd1680_simpletest.py

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
# For issues with display not updating top/bottom rows correctly set colstart to 8
3838
display = adafruit_ssd1680.SSD1680(
3939
display_bus,
40-
colstart=1,
40+
colstart=8,
4141
width=250,
4242
height=122,
4343
busy_pin=epd_busy,
@@ -50,12 +50,7 @@
5050

5151
with open("/display-ruler.bmp", "rb") as f:
5252
pic = displayio.OnDiskBitmap(f)
53-
# CircuitPython 6 & 7 compatible
54-
t = displayio.TileGrid(
55-
pic, pixel_shader=getattr(pic, "pixel_shader", displayio.ColorConverter())
56-
)
57-
# CircuitPython 7 compatible only
58-
# t = displayio.TileGrid(pic, pixel_shader=pic.pixel_shader)
53+
t = displayio.TileGrid(pic, pixel_shader=pic.pixel_shader)
5954
g.append(t)
6055

6156
display.show(g)

0 commit comments

Comments
 (0)