support ID=0xE300 untested, no datasheet

This commit is contained in:
prenticedavid
2021-01-20 16:31:14 +00:00
parent b2eb0e404c
commit 3932581f28

View File

@@ -242,6 +242,7 @@ uint16_t MCUFRIEND_kbv::readID(void)
uint32_t ret32 = readReg32(0x04);
msb = ret32 >> 16;
ret = ret32;
if (msb = 0xE3 && ret == 0x0000) return 0xE300; //reg(04) = [xx E3 00 00] BangGood
// if (msb = 0x38 && ret == 0x8000) //unknown [xx 38 80 00] with D3 = 0x1602
if (msb == 0x00 && ret == 0x8000) { //HX8357-D [xx 00 80 00]
#if 1
@@ -2539,6 +2540,9 @@ case 0x4532: // thanks Leodino
table8_ads = XX1602_regValues, table_size = sizeof(XX1602_regValues);
break;
case 0xE300: //weird from BangGood
_lcd_capable = AUTO_READINC | MIPI_DCS_REV1 | MV_AXIS | READ_24BITS | INVERT_SS | INVERT_RGB;
goto common_9329;
case 0x2053: //weird from BangGood
_lcd_capable = AUTO_READINC | MIPI_DCS_REV1 | MV_AXIS | READ_24BITS | REV_SCREEN | READ_BGR;
goto common_9329;