Merge branch 'ssd1306-128x32' of wezm/uGFX into master

This commit is contained in:
Joel Bodenmann 2017-01-06 12:54:43 +01:00 committed by Gogs
commit 4b89b3e6ed

View File

@ -109,6 +109,8 @@ LLDSPEC bool_t gdisp_lld_init(GDisplay *g) {
write_cmd(g, SSD1306_ROWSCANDEC); write_cmd(g, SSD1306_ROWSCANDEC);
#if GDISP_SCREEN_HEIGHT == 64 #if GDISP_SCREEN_HEIGHT == 64
write_cmd2(g, SSD1306_SETCOMPINS, 0x12); write_cmd2(g, SSD1306_SETCOMPINS, 0x12);
#elif GDISP_SCREEN_HEIGHT == 32
write_cmd2(g, SSD1306_SETCOMPINS, 0x02);
#else #else
write_cmd2(g, SSD1306_SETCOMPINS, 0x22); write_cmd2(g, SSD1306_SETCOMPINS, 0x22);
#endif #endif