test for HX8357-D is too big for Uno

This commit is contained in:
prenticedavid
2017-01-11 08:33:44 +00:00
parent 8a7b449246
commit be0722bb45

View File

@@ -214,10 +214,12 @@ uint16_t MCUFRIEND_kbv::readID(void)
ret = ret32;
// 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 0
uint8_t cmds[] = {0xFF, 0x83, 0x57};
pushCommand(0xB9, cmds, 3);
msb = readReg(0xD0);
if (msb == 0x99 || msb == 0x90)
#endif
return 0x8357;
}
if (msb == 0xFF && ret == 0xFFFF) //R61526 [xx FF FF FF]