From af64708fa9c6262ac6b34012f6326b3e02fc2380 Mon Sep 17 00:00:00 2001 From: olikraus Date: Sat, 16 Dec 2017 08:17:13 +0100 Subject: [PATCH] 2.21.1 --- README.md | 2 +- library.properties | 2 +- src/clib/u8x8_d_sh1107.c | 27 ++++++++++++--------------- 3 files changed, 14 insertions(+), 17 deletions(-) diff --git a/README.md b/README.md index 8b6bc333..8ac0ae48 100644 --- a/README.md +++ b/README.md @@ -8,5 +8,5 @@ Description: https://github.com/olikraus/u8g2/wiki Issue Tracker: https://github.com/olikraus/u8g2/issues -Download (2.21.0): https://github.com/olikraus/U8g2_Arduino/archive/master.zip +Download (2.21.1): https://github.com/olikraus/U8g2_Arduino/archive/master.zip diff --git a/library.properties b/library.properties index 95398bc0..69a929f4 100644 --- a/library.properties +++ b/library.properties @@ -1,5 +1,5 @@ name=U8g2 -version=2.21.0 +version=2.21.1 author=oliver maintainer=oliver sentence=Monochrome LCD, OLED and eInk Library. Display controller: SSD1305, SSD1306, SSD1309, SSD1322, SSD1325, SSD1327, SSD1329, SSD1606, SSD1607, SH1106, T6963, RA8835, LC7981, PCD8544, PCF8812, UC1601, UC1604, UC1608, UC1610, UC1611, UC1701, ST7565, ST7567, ST7588, ST75256, NT7534, IST3020, ST7920, LD7032, KS0108, SED1520, SBN1661, IL3820, MAX7219. Interfaces: I2C, SPI, Parallel. diff --git a/src/clib/u8x8_d_sh1107.c b/src/clib/u8x8_d_sh1107.c index ca15241f..19271b92 100644 --- a/src/clib/u8x8_d_sh1107.c +++ b/src/clib/u8x8_d_sh1107.c @@ -153,34 +153,31 @@ static uint8_t u8x8_d_sh1107_generic(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, /*==================================================*/ +/* QG-6428TSWKG01 */ static const uint8_t u8x8_d_sh1107_128x64_noname_init_seq[] = { U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ U8X8_C(0x0ae), /* display off */ - U8X8_CA(0x0d5, 0x080), /* clock divide ratio (0x00=1) and oscillator frequency (0x8) */ - U8X8_CA(0x0a8, 0x03f), /* multiplex ratio */ - U8X8_CA(0x0d3, 0x000), /* display offset */ - U8X8_C(0x040), /* set display start line to 0 */ - U8X8_CA(0x08d, 0x014), /* [2] charge pump setting (p62): 0x014 enable, 0x010 disable, sh1107 only, should be removed for SH1106 */ - U8X8_CA(0x020, 0x000), /* page addressing mode */ - + U8X8_CA(0x0dc, 0x000), /* start line */ + U8X8_CA(0x081, 0x02f), /* [2] set contrast control */ + U8X8_C(0x020), /* use page addressing mode */ + U8X8_C(0x0a1), /* segment remap a0/a1*/ U8X8_C(0x0c8), /* c0: scan dir normal, c8: reverse */ // Flipmode // U8X8_C(0x0a0), /* segment remap a0/a1*/ // U8X8_C(0x0c0), /* c0: scan dir normal, c8: reverse */ - U8X8_CA(0x0da, 0x012), /* com pin HW config, sequential com pin config (bit 4), disable left/right remap (bit 5) */ - - U8X8_CA(0x081, 0x0cf), /* [2] set contrast control */ - U8X8_CA(0x0d9, 0x0f1), /* [2] pre-charge period 0x022/f1*/ - U8X8_CA(0x0db, 0x040), /* vcomh deselect level */ - // if vcomh is 0, then this will give the biggest range for contrast control issue #98 - // restored the old values for the noname constructor, because vcomh=0 will not work for all OLEDs, #116 + U8X8_CA(0x0a8, 0x03f), /* multiplex ratio */ + U8X8_CA(0x0d3, 0x060), /* display offset */ + U8X8_CA(0x0d5, 0x051), /* clock divide ratio (0x00=1) and oscillator frequency (0x8) */ + U8X8_CA(0x0d9, 0x022), /* [2] pre-charge period 0x022/f1*/ + U8X8_CA(0x0db, 0x035), /* vcomh deselect level */ + U8X8_CA(0x0ad, 0x08a), /* */ + - U8X8_C(0x02e), /* Deactivate scroll */ U8X8_C(0x0a4), /* output ram to display */ U8X8_C(0x0a6), /* none inverted normal display mode */