Browse Source

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

Joel Bodenmann 4 years ago
parent
commit
4b89b3e6ed
1 changed files with 2 additions and 0 deletions
  1. 2 0
      drivers/gdisp/SSD1306/gdisp_lld_SSD1306.c

+ 2 - 0
drivers/gdisp/SSD1306/gdisp_lld_SSD1306.c

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