This commit is contained in:
kraus
2022-09-29 14:02:30 +02:00
parent 8b6d4f9e1a
commit 76acc536db
4 changed files with 34 additions and 2 deletions
+1 -1
View File
@@ -8,5 +8,5 @@ Description: https://github.com/olikraus/u8g2/wiki
Issue Tracker: https://github.com/olikraus/u8g2/issues Issue Tracker: https://github.com/olikraus/u8g2/issues
Download (2.34.2): https://github.com/olikraus/U8g2_Arduino/archive/master.zip Download (2.34.3): https://github.com/olikraus/U8g2_Arduino/archive/master.zip
+2
View File
@@ -300,4 +300,6 @@ https://github.com/olikraus/u8g2 ChangeLog
* Changed SPI mode for SH1106 from 3 to 0 (issue 1901) * Changed SPI mode for SH1106 from 3 to 0 (issue 1901)
2022-xx-xx v2.34.xx olikraus@gmail.com 2022-xx-xx v2.34.xx olikraus@gmail.com
* SSD1327 ZJY M150 128x128 (issue 1960) * SSD1327 ZJY M150 128x128 (issue 1960)
* SSD1316 96x32 (1938)
+1 -1
View File
@@ -1,5 +1,5 @@
name=U8g2 name=U8g2
version=2.34.2 version=2.34.3
author=oliver <olikraus@gmail.com> author=oliver <olikraus@gmail.com>
maintainer=oliver <olikraus@gmail.com> maintainer=oliver <olikraus@gmail.com>
sentence=Monochrome LCD, OLED and eInk Library. Display controller: SSD1305, SSD1306, SSD1309, SSD1312, SSD1316, SSD1318, SSD1320, SSD1322, SSD1325, SSD1327, SSD1329, SSD1606, SSD1607, SH1106, SH1107, SH1108, SH1122, T6963, RA8835, LC7981, PCD8544, PCF8812, HX1230, UC1601, UC1604, UC1608, UC1610, UC1611, UC1617, UC1638, UC1701, ST7511, ST7528, ST7565, ST7567, ST7571, ST7586, ST7588, ST75160, ST75256, ST75320, NT7534, ST7920, IST3020, IST3088, IST7920, LD7032, KS0108, KS0713, HD44102, T7932, SED1520, SBN1661, IL3820, MAX7219, GP1287, GP1247, GU800. Interfaces: I2C, SPI, Parallel. sentence=Monochrome LCD, OLED and eInk Library. Display controller: SSD1305, SSD1306, SSD1309, SSD1312, SSD1316, SSD1318, SSD1320, SSD1322, SSD1325, SSD1327, SSD1329, SSD1606, SSD1607, SH1106, SH1107, SH1108, SH1122, T6963, RA8835, LC7981, PCD8544, PCF8812, HX1230, UC1601, UC1604, UC1608, UC1610, UC1611, UC1617, UC1638, UC1701, ST7511, ST7528, ST7565, ST7567, ST7571, ST7586, ST7588, ST75160, ST75256, ST75320, NT7534, ST7920, IST3020, IST3088, IST7920, LD7032, KS0108, KS0713, HD44102, T7932, SED1520, SBN1661, IL3820, MAX7219, GP1287, GP1247, GU800. Interfaces: I2C, SPI, Parallel.
+30
View File
@@ -252,6 +252,23 @@ static const uint8_t u8x8_d_ssd1306_96x39_init_seq[] = {
U8X8_END() /* end of sequence */ U8X8_END() /* end of sequence */
}; };
static const uint8_t u8x8_d_ssd1306_96x39_flip0_seq[] = {
U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */
U8X8_C(0x0a1), /* segment remap a0/a1*/
U8X8_C(0x0c8), /* c0: scan dir normal, c8: reverse */
U8X8_C(0x041), /* set display start line to 1 */
U8X8_END_TRANSFER(), /* disable chip */
U8X8_END() /* end of sequence */
};
static const uint8_t u8x8_d_ssd1306_96x39_flip1_seq[] = {
U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */
U8X8_C(0x0a0), /* segment remap a0/a1*/
U8X8_C(0x0c0), /* c0: scan dir normal, c8: reverse */
U8X8_C(0x040), /* set display start line to 0 */
U8X8_END_TRANSFER(), /* disable chip */
U8X8_END() /* end of sequence */
};
static const u8x8_display_info_t u8x8_ssd1306_96x39_display_info = static const u8x8_display_info_t u8x8_ssd1306_96x39_display_info =
@@ -291,6 +308,19 @@ uint8_t u8x8_d_ssd1306_96x39(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *a
u8x8_cad_SendSequence(u8x8, u8x8_d_ssd1306_96x39_init_seq); u8x8_cad_SendSequence(u8x8, u8x8_d_ssd1306_96x39_init_seq);
return 1; return 1;
} }
else if ( msg == U8X8_MSG_DISPLAY_SET_FLIP_MODE )
{
if ( arg_int == 0 )
{
u8x8_cad_SendSequence(u8x8, u8x8_d_ssd1306_96x39_flip0_seq);
u8x8->x_offset = u8x8->display_info->default_x_offset;
}
else
{
u8x8_cad_SendSequence(u8x8, u8x8_d_ssd1306_96x39_flip1_seq);
u8x8->x_offset = u8x8->display_info->flipmode_x_offset;
}
}
return u8x8_d_ssd1306_96x40_generic(u8x8, msg, arg_int, arg_ptr); return u8x8_d_ssd1306_96x40_generic(u8x8, msg, arg_int, arg_ptr);
} }