Skip to content

Commit 4910e57

Browse files
authored
fix for displays with width > 256
1 parent 99adf0f commit 4910e57

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

adafruit_ssd1608.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ class SSD1608(displayio.EPaperDisplay):
6969
def __init__(self, bus, **kwargs):
7070
start_sequence = bytearray(_START_SEQUENCE)
7171
width = kwargs["width"]
72-
start_sequence[4] = width - 1
72+
start_sequence[4] = (width - 1) & 0xff
7373
start_sequence[5] = (width - 1) >> 8
7474

7575
super().__init__(bus, start_sequence, _STOP_SEQUENCE, **kwargs,

0 commit comments

Comments
 (0)