diff options
author | Joel Bodenmann <info@b-electronics.ch> | 2017-01-06 12:54:43 +0100 |
---|---|---|
committer | Gogs <gogs@fake.local> | 2017-01-06 12:54:43 +0100 |
commit | 4b89b3e6ed1bba25e6c3e01306b1ae0eeb884d4b (patch) | |
tree | e97a9fe7f16f7e1d11211022b7e17892a7199808 /drivers/gdisp/SSD1306 | |
parent | 6a30927a91497bc301a35c6260601eaf97cc9a76 (diff) | |
parent | 281ccb72ce8bf12da6e45ce724a3cf8db7104a00 (diff) | |
download | uGFX-4b89b3e6ed1bba25e6c3e01306b1ae0eeb884d4b.tar.gz uGFX-4b89b3e6ed1bba25e6c3e01306b1ae0eeb884d4b.tar.bz2 uGFX-4b89b3e6ed1bba25e6c3e01306b1ae0eeb884d4b.zip |
Merge branch 'ssd1306-128x32' of wezm/uGFX into master
Diffstat (limited to 'drivers/gdisp/SSD1306')
-rw-r--r-- | drivers/gdisp/SSD1306/gdisp_lld_SSD1306.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gdisp/SSD1306/gdisp_lld_SSD1306.c b/drivers/gdisp/SSD1306/gdisp_lld_SSD1306.c index 65edbaee..08c66f1f 100644 --- a/drivers/gdisp/SSD1306/gdisp_lld_SSD1306.c +++ b/drivers/gdisp/SSD1306/gdisp_lld_SSD1306.c @@ -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 |