From 210c0006ab2c5c80a939334f7d2e823a55f9fd53 Mon Sep 17 00:00:00 2001 From: prenticedavid Date: Sun, 12 May 2019 12:58:53 +0100 Subject: [PATCH] print ID on Serial --- examples/Font_simple/Font_simple.ino | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/examples/Font_simple/Font_simple.ino b/examples/Font_simple/Font_simple.ino index 335bc61..79e7988 100644 --- a/examples/Font_simple/Font_simple.ino +++ b/examples/Font_simple/Font_simple.ino @@ -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); } -