prenticedavid/MCUFRIEND_kbv

Error with HX8357D

tqtrungse opened this issue · 0 comments

  • Platform IO

  • ESP32 dev module

  • MCUFRIEND_KBV 3.1.0-Beta

  • Chip HX8357D

When I used readID() function, I had ID: 0x99 and a black background screen although I filled in a white.
Then I harded code ID:0x9486 and everything worked fine.

But I can sometimes not upload the code to ESP (occurred with ID: 0x9486).
Untitled

Here my code:

MCUFRIEND_kbv* brush = new MCUFRIEND_kbv();
brush->begin(0x9486);
// brush->begin(brush->readID());
brush->setRotation(3);
brush->fillScreen(WHITE);

Do I wrong something?