Skip to content

Commit 0eccec4

Browse files
authored
Update adafruit_displayio_ssd1306.py
Explain the test for a special resolution. I expected the same formula to work for all board, but at least 32x64 screen have special need.
1 parent 642d1bd commit 0eccec4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

adafruit_displayio_ssd1306.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ def __init__(
8080
height = kwargs["width"]
8181
width = kwargs["height"]
8282
init_sequence[16] = height - 1 # patch mux ratio
83-
if height == 32 and width == 64: # FIX ME
83+
if height == 32 and width == 64: # Make sure this only apply to that resolution
8484
init_sequence[16] = 64 - 1 # FORCED for 64x32 because it fail with formula
8585
if height in (32, 16) and width != 64:
8686
init_sequence[25] = 0x02 # patch com configuration

0 commit comments

Comments
 (0)