We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 267219f commit bf61c20Copy full SHA for bf61c20
adafruit_displayio_ssd1306.py
@@ -87,12 +87,15 @@ def __init__(
87
col_offset = (
88
0 if width == 128 else (128 - width) // 2
89
) # https://github.com/micropython/micropython/pull/7411
90
+ row_offset = (
91
+ col_offset if (kwargs["height"] != 48 or kwargs["width"] != 64) else 0
92
+ ) # fix for 0.66" 64x48 OLED
93
super().__init__(
94
bus,
95
init_sequence,
96
**kwargs,
97
colstart=col_offset,
- rowstart=col_offset,
98
+ rowstart=row_offset,
99
color_depth=1,
100
grayscale=True,
101
pixels_in_byte_share_row=False,
0 commit comments