Skip to content

Commit

Permalink
test for HX8357-D is too big for Uno
Browse files Browse the repository at this point in the history
  • Loading branch information
prenticedavid committed Jan 11, 2017
1 parent 8a7b449 commit be0722b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions MCUFRIEND_kbv.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit be0722b

Please sign in to comment.