mirror of
https://github.com/YuzuZensai/MCUFRIEND_kbv.git
synced 2026-01-06 04:32:38 +00:00
print ID on Serial
This commit is contained in:
@@ -18,7 +18,10 @@ void setup(void)
|
||||
{
|
||||
Serial.begin(9600);
|
||||
uint16_t ID = tft.readID();
|
||||
if (ID == 0xD3) ID = 0x9481;
|
||||
Serial.println("Example: Font_simple");
|
||||
Serial.print("found ID = 0x");
|
||||
Serial.println(ID, HEX);
|
||||
if (ID == 0xD3D3) ID = 0x9481; //force ID if write-only display
|
||||
tft.begin(ID);
|
||||
tft.setRotation(0);
|
||||
}
|
||||
@@ -63,4 +66,3 @@ void showmsgXY(int x, int y, int sz, const GFXfont *f, const char *msg)
|
||||
tft.print(msg);
|
||||
delay(1000);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user