We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4c6817c commit e935e6cCopy full SHA for e935e6c
adafruit_ssd1306.py
@@ -95,14 +95,14 @@ def init_display(self):
95
SET_MEM_ADDR, 0x00, # horizontal
96
# resolution and layout
97
SET_DISP_START_LINE | 0x00,
98
- SET_SEG_REMAP | 0x00, # column addr 127 mapped to SEG0
+ SET_SEG_REMAP | 0x01, # column addr 127 mapped to SEG0
99
SET_MUX_RATIO, self.height - 1,
100
SET_COM_OUT_DIR | 0x08, # scan from COM[N] to COM0
101
SET_DISP_OFFSET, 0x00,
102
SET_COM_PIN_CFG, 0x02 if self.height == 32 or self.height == 16 else 0x12,
103
# timing and driving scheme
104
SET_DISP_CLK_DIV, 0x80,
105
- SET_PRECHARGE, 0x22 if self.external_vcc else 0x22,
+ SET_PRECHARGE, 0x22 if self.external_vcc else 0xf1,
106
SET_VCOM_DESEL, 0x30, # 0.83*Vcc
107
# display
108
SET_CONTRAST, 0xff, # maximum
0 commit comments