adjust VRH, LCDDRV, set false attribute to disable Software Scroll

This commit is contained in:
prenticedavid
2018-10-27 11:43:36 +01:00
parent 28f925cfa2
commit 3489ee57a9
2 changed files with 8 additions and 16 deletions

View File

@@ -1007,7 +1007,9 @@ void MCUFRIEND_kbv::begin(uint16_t ID)
#ifdef SUPPORT_1289
case 0x9797:
is9797 = 1;
_lcd_capable = 0 | XSA_XEA_16BIT | REV_SCREEN | AUTO_READINC | READ_24BITS;
// _lcd_capable = 0 | XSA_XEA_16BIT | REV_SCREEN | AUTO_READINC | READ_24BITS;
// deliberately set READ_BGR to disable Software Scroll in graphictest_kbv example
_lcd_capable = 0 | XSA_XEA_16BIT | REV_SCREEN | AUTO_READINC | READ_24BITS | READ_BGR;
_lcd_ID = 0x1289;
goto common_1289;
case 0x1289:
@@ -1018,13 +1020,13 @@ void MCUFRIEND_kbv::begin(uint16_t ID)
0x0000, 0x0001,
0x0003, 0xA8A4,
0x000C, 0x0000,
0x000D, 0x080C, // was 0x800C
0x000D, 0x000A, // VRH=10
0x000E, 0x2B00,
0x001E, 0x00B7,
0x0001, 0x2B3F, // was 0x2B3F,
0x0002, 0x0400, // was 0x0600
0x0001, 0x2B3F, // setRotation() alters
0x0002, 0x0600, // B_C=1, EOR=1
0x0010, 0x0000,
0x0011, 0x6070, // was 0x6070
0x0011, 0x6070, // setRotation() alters
0x0005, 0x0000,
0x0006, 0x0000,
0x0016, 0xEF1C,
@@ -1032,15 +1034,6 @@ void MCUFRIEND_kbv::begin(uint16_t ID)
0x0007, 0x0233,
0x000B, 0x0000,
0x000F, 0x0000,
0x0041, 0x0000,
0x0042, 0x0000,
0x0048, 0x0000,
0x0049, 0x013F,
0x004A, 0x0000,
0x004B, 0x0000,
0x0044, 0xEF95,
0x0045, 0x0000,
0x0046, 0x013F,
0x0030, 0x0707,
0x0031, 0x0204,
0x0032, 0x0204,
@@ -1054,8 +1047,6 @@ void MCUFRIEND_kbv::begin(uint16_t ID)
0x0023, 0x0000,
0x0024, 0x0000,
0x0025, 0x8000,
0x004f, 0x0000,
0x004e, 0x0000,
};
init_table16(SSD1289_regValues, sizeof(SSD1289_regValues));
break;

View File

@@ -74,6 +74,7 @@ SPFD5408 240x320 ID=0x5408
SPFD5420 240x400 ID=0x5420 #define SUPPORT_9326_5420
SSD1963 800x480 ID=0x1963
SSD1289 240x320 ID=0x1289 #define SUPPORT_1289
SSD1297 240x320 ID=0x9797 #define SUPPORT_1289 (unstable readGRAM())
ST7781 240x320 ID=0x7783 #define SUPPORT_7781 (no Vertical Scroll)
ST7789V 240x320 ID=0x7789
ST7793 240x400 ID=0x7793 #define SUPPORT_B509_7793