File tree 1 file changed +5
-1
lines changed
1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change 22
22
* `Monochrome 128x32 SPI OLED graphic display <https://www.adafruit.com/product/661>`_
23
23
* `Adafruit FeatherWing OLED - 128x32 OLED <https://www.adafruit.com/product/2900>`_
24
24
* Monochrome 0.49" 64x32 I2C OLED graphic display
25
+ * Monochrome 0.66" 64x48 I2C OLED graphic display (eg https://www.amazon.com/gp/product/B07QF7QK6P)
25
26
* Might work on other sub-128 width display: Dots 72x40, 64x48, 96x16
26
27
27
28
**Software and Dependencies:**
@@ -87,12 +88,15 @@ def __init__(
87
88
col_offset = (
88
89
0 if width == 128 else (128 - width ) // 2
89
90
) # https://github.com/micropython/micropython/pull/7411
91
+ row_offset = (
92
+ col_offset if (kwargs ["height" ] != 48 or kwargs ["width" ] != 64 ) else 0
93
+ ) # fix for 0.66" 64x48 OLED
90
94
super ().__init__ (
91
95
bus ,
92
96
init_sequence ,
93
97
** kwargs ,
94
98
colstart = col_offset ,
95
- rowstart = col_offset ,
99
+ rowstart = row_offset ,
96
100
color_depth = 1 ,
97
101
grayscale = True ,
98
102
pixels_in_byte_share_row = False ,
You can’t perform that action at this time.
0 commit comments