From f0780e399e1ff562f3c2c63827fb94b097afc222 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Arnim=20L=C3=A4uger?= Date: Sat, 29 Oct 2016 23:19:04 +0200 Subject: [PATCH] Add ssd1306_128x32 for U8G (#1571) --- app/include/u8g_config.h | 2 ++ docs/en/modules/u8g.md | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/app/include/u8g_config.h b/app/include/u8g_config.h index 09866f1b..f2aaeddf 100644 --- a/app/include/u8g_config.h +++ b/app/include/u8g_config.h @@ -24,6 +24,7 @@ // // I2C based displays go into here: // U8G_DISPLAY_TABLE_ENTRY(sh1106_128x64_i2c) \ +// U8G_DISPLAY_TABLE_ENTRY(ssd1306_128x32_i2c) \ // U8G_DISPLAY_TABLE_ENTRY(ssd1306_128x64_i2c) \ // U8G_DISPLAY_TABLE_ENTRY(ssd1306_64x48_i2c) \ // U8G_DISPLAY_TABLE_ENTRY(ssd1309_128x64_i2c) \ @@ -40,6 +41,7 @@ // U8G_DISPLAY_TABLE_ENTRY(pcd8544_84x48_hw_spi) \ // U8G_DISPLAY_TABLE_ENTRY(pcf8812_96x65_hw_spi) \ // U8G_DISPLAY_TABLE_ENTRY(sh1106_128x64_hw_spi) \ +// U8G_DISPLAY_TABLE_ENTRY(ssd1306_128x32_hw_spi) \ // U8G_DISPLAY_TABLE_ENTRY(ssd1306_128x64_hw_spi) \ // U8G_DISPLAY_TABLE_ENTRY(ssd1306_64x48_hw_spi) \ // U8G_DISPLAY_TABLE_ENTRY(ssd1309_128x64_hw_spi) \ diff --git a/docs/en/modules/u8g.md b/docs/en/modules/u8g.md index 3bbb46da..7b477638 100644 --- a/docs/en/modules/u8g.md +++ b/docs/en/modules/u8g.md @@ -8,7 +8,7 @@ U8glib is a graphics library developed at [olikraus/u8glib](https://github.com/o I²C and SPI mode: - sh1106_128x64 -- ssd1306 - 128x64 and 64x48 variants +- ssd1306 - 128x32, 128x64, and 64x48 variants - ssd1309_128x64 - ssd1327_96x96_gr - uc1611 - dogm240 and dogxl240 variants @@ -107,6 +107,7 @@ Initialize a display via I²C. The init sequence would insert delays to match the display specs. These can destabilize the overall system if wifi service is blocked for too long. It is therefore advisable to disable such delays unless the specific use case can exclude wifi traffic while initializing the display driver. - `u8g.sh1106_128x64_i2c()` +- `u8g.ssd1306_128x32_i2c()` - `u8g.ssd1306_128x64_i2c()` - `u8g.ssd1306_64x48_i2c()` - `u8g.ssd1309_128x64_i2c()` @@ -146,6 +147,7 @@ The init sequence would insert delays to match the display specs. These can dest - `u8g.pcd8544_84x48_hw_spi()` - `u8g.pcf8812_96x65_hw_spi()` - `u8g.sh1106_128x64_hw_spi()` +- `u8g.ssd1306_128x32_hw_spi()` - `u8g.ssd1306_128x64_hw_spi()` - `u8g.ssd1306_64x48_hw_spi()` - `u8g.ssd1309_128x64_hw_spi()`