mirror of
https://github.com/YuzuZensai/MCUFRIEND_kbv.git
synced 2026-01-31 14:57:48 +00:00
weird BangGood controller ID=0x2053. it was 0x0
This commit is contained in:
@@ -217,6 +217,9 @@ uint16_t MCUFRIEND_kbv::readID(void)
|
|||||||
ret = readReg40(0xEF); //ILI9327: [xx 02 04 93 27 FF]
|
ret = readReg40(0xEF); //ILI9327: [xx 02 04 93 27 FF]
|
||||||
if (ret == 0x9327)
|
if (ret == 0x9327)
|
||||||
return 0x9327;
|
return 0x9327;
|
||||||
|
ret = readReg32(0xFE) >> 8; //weird unknown from BangGood [04 20 53]
|
||||||
|
if (ret == 0x2053)
|
||||||
|
return 0x2053;
|
||||||
uint32_t ret32 = readReg32(0x04);
|
uint32_t ret32 = readReg32(0x04);
|
||||||
msb = ret32 >> 16;
|
msb = ret32 >> 16;
|
||||||
ret = ret32;
|
ret = ret32;
|
||||||
@@ -855,8 +858,6 @@ void MCUFRIEND_kbv::begin(uint16_t ID)
|
|||||||
int16_t table_size;
|
int16_t table_size;
|
||||||
reset();
|
reset();
|
||||||
_lcd_xor = 0;
|
_lcd_xor = 0;
|
||||||
if (ID == 0)
|
|
||||||
ID = 0x9341;
|
|
||||||
switch (_lcd_ID = ID) {
|
switch (_lcd_ID = ID) {
|
||||||
/*
|
/*
|
||||||
static const uint16_t _regValues[] PROGMEM = {
|
static const uint16_t _regValues[] PROGMEM = {
|
||||||
@@ -2211,6 +2212,9 @@ case 0x4532: // thanks Leodino
|
|||||||
case 0x1602:
|
case 0x1602:
|
||||||
_lcd_capable = AUTO_READINC | MIPI_DCS_REV1 | MV_AXIS | INVERT_GS | READ_24BITS; //thanks Dumper
|
_lcd_capable = AUTO_READINC | MIPI_DCS_REV1 | MV_AXIS | INVERT_GS | READ_24BITS; //thanks Dumper
|
||||||
goto common_9329;
|
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;
|
||||||
case 0xAC11:
|
case 0xAC11:
|
||||||
_lcd_capable = AUTO_READINC | MIPI_DCS_REV1 | MV_AXIS | READ_24BITS | REV_SCREEN; //thanks viliam
|
_lcd_capable = AUTO_READINC | MIPI_DCS_REV1 | MV_AXIS | READ_24BITS | REV_SCREEN; //thanks viliam
|
||||||
goto common_9329;
|
goto common_9329;
|
||||||
@@ -2273,15 +2277,7 @@ case 0x4532: // thanks Leodino
|
|||||||
0xB1, 2, 0x00, 0x1B, //Frame Control [00 1B]
|
0xB1, 2, 0x00, 0x1B, //Frame Control [00 1B]
|
||||||
0xB7, 1, 0x07, //Entry Mode [00]
|
0xB7, 1, 0x07, //Entry Mode [00]
|
||||||
};
|
};
|
||||||
#if !defined(USE_SERIAL)
|
table8_ads = ILI9341_regValues_2_4, table_size = sizeof(ILI9341_regValues_2_4); //
|
||||||
if (readReg32(0xD3) == 0x0000) { //weird DealExtreme EXTC=0 shield
|
|
||||||
table8_ads = ILI9341_regValues_ada, table_size = sizeof(ILI9341_regValues_ada);
|
|
||||||
_lcd_capable |= REV_SCREEN | READ_BGR;
|
|
||||||
} else
|
|
||||||
#endif
|
|
||||||
{
|
|
||||||
table8_ads = ILI9341_regValues_2_4, table_size = sizeof(ILI9341_regValues_2_4); //
|
|
||||||
}
|
|
||||||
break;
|
break;
|
||||||
#if defined(SUPPORT_9342)
|
#if defined(SUPPORT_9342)
|
||||||
case 0x9342:
|
case 0x9342:
|
||||||
|
|||||||
@@ -72,6 +72,7 @@ UC8230 240x320 ID=0x8230 #define SUPPORT_8230
|
|||||||
UNKNOWN 320x480 ID=0x1511 (scroll directions not correct)
|
UNKNOWN 320x480 ID=0x1511 (scroll directions not correct)
|
||||||
UNKNOWN 240x320 ID=0x1602
|
UNKNOWN 240x320 ID=0x1602
|
||||||
UNKNOWN 240x320 ID=0xAC11
|
UNKNOWN 240x320 ID=0xAC11
|
||||||
|
UNKNOWN 240x320 ID=0x2053 weird controller from BangGood (was ID=0x0000)
|
||||||
|
|
||||||
Most of these controllers are #define SUPPORT_xxxx by default.
|
Most of these controllers are #define SUPPORT_xxxx by default.
|
||||||
You can save Flash memory on a Uno by commenting out the macro(s) in MCUFRIEND_kbv.cpp
|
You can save Flash memory on a Uno by commenting out the macro(s) in MCUFRIEND_kbv.cpp
|
||||||
|
|||||||
Reference in New Issue
Block a user