File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -95,14 +95,14 @@ def init_display(self):
95
95
SET_MEM_ADDR , 0x00 , # horizontal
96
96
# resolution and layout
97
97
SET_DISP_START_LINE | 0x00 ,
98
- SET_SEG_REMAP | 0x00 , # column addr 127 mapped to SEG0
98
+ SET_SEG_REMAP | 0x01 , # column addr 127 mapped to SEG0
99
99
SET_MUX_RATIO , self .height - 1 ,
100
100
SET_COM_OUT_DIR | 0x08 , # scan from COM[N] to COM0
101
101
SET_DISP_OFFSET , 0x00 ,
102
102
SET_COM_PIN_CFG , 0x02 if self .height == 32 or self .height == 16 else 0x12 ,
103
103
# timing and driving scheme
104
104
SET_DISP_CLK_DIV , 0x80 ,
105
- SET_PRECHARGE , 0x22 if self .external_vcc else 0x22 ,
105
+ SET_PRECHARGE , 0x22 if self .external_vcc else 0xf1 ,
106
106
SET_VCOM_DESEL , 0x30 , # 0.83*Vcc
107
107
# display
108
108
SET_CONTRAST , 0xff , # maximum
You can’t perform that action at this time.
0 commit comments