This commit is contained in:
kraus
2024-04-27 12:19:18 +02:00
parent bf0e3d3dcf
commit 1fa56dc792
3 changed files with 22 additions and 3 deletions
+1 -1
View File
@@ -8,5 +8,5 @@ Description: https://github.com/olikraus/u8g2/wiki
Issue Tracker: https://github.com/olikraus/u8g2/issues
Download (2.35.17): https://github.com/olikraus/U8g2_Arduino/archive/master.zip
Download (2.35.18): https://github.com/olikraus/U8g2_Arduino/archive/master.zip
+1 -1
View File
@@ -1,5 +1,5 @@
name=U8g2
version=2.35.17
version=2.35.18
author=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.
+20 -1
View File
@@ -60,6 +60,7 @@ static const uint8_t u8x8_d_pcf8812_96x65_init_seq[] = {
U8X8_END() /* end of sequence */
};
static const uint8_t u8x8_d_pcf8812_96x65_powersave0_seq[] = {
U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */
U8X8_C(0x020), /* power on */
@@ -190,7 +191,6 @@ uint8_t u8x8_d_pcf8812_96x65(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *a
return u8x8_d_pcf8812_96x65_generic(u8x8, msg, arg_int, arg_ptr);
}
/* https://github.com/olikraus/u8g2/issues/2421 */
static const u8x8_display_info_t u8x8_pcf8812_101x64_display_info =
{
@@ -216,6 +216,20 @@ static const u8x8_display_info_t u8x8_pcf8812_101x64_display_info =
/* pixel_height = */ 64
};
static const uint8_t u8x8_d_pcf8812_101x64_init_seq[] = {
U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */
U8X8_C(0x21), // PowerON, ExtCommandSet
U8X8_C(0x09), // Internal HV-gen x3
U8X8_C(0xB7), // Set Vop
U8X8_C(0x16), // Bias n=2 //15
U8X8_C(0x06), // Temperature coeff 2
U8X8_C(0x20), // StandartCommandSet
U8X8_C(0x0C), // normal mode, display non-inverted
U8X8_END_TRANSFER(), /* disable chip */
U8X8_END() /* end of sequence */
};
uint8_t u8x8_d_pcf8812_101x64(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr)
{
if ( msg == U8X8_MSG_DISPLAY_SETUP_MEMORY )
@@ -223,6 +237,11 @@ uint8_t u8x8_d_pcf8812_101x64(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *
u8x8_d_helper_display_setup_memory(u8x8, &u8x8_pcf8812_101x64_display_info);
return 1;
}
else if ( msg == U8X8_MSG_DISPLAY_INIT )
{
u8x8_d_helper_display_init(u8x8);
u8x8_cad_SendSequence(u8x8, u8x8_d_pcf8812_101x64_init_seq);
}
return u8x8_d_pcf8812_96x65_generic(u8x8, msg, arg_int, arg_ptr);
}