Add support for 128x32 SSD1306 displays
This commit is contained in:
parent
43bcd7930b
commit
281ccb72ce
1 changed files with 2 additions and 0 deletions
|
@ -109,6 +109,8 @@ LLDSPEC bool_t gdisp_lld_init(GDisplay *g) {
|
|||
write_cmd(g, SSD1306_ROWSCANDEC);
|
||||
#if GDISP_SCREEN_HEIGHT == 64
|
||||
write_cmd2(g, SSD1306_SETCOMPINS, 0x12);
|
||||
#elif GDISP_SCREEN_HEIGHT == 32
|
||||
write_cmd2(g, SSD1306_SETCOMPINS, 0x02);
|
||||
#else
|
||||
write_cmd2(g, SSD1306_SETCOMPINS, 0x22);
|
||||
#endif
|
||||
|
|
Loading…
Add table
Reference in a new issue