diff --git a/examples/TFT_Touchscreen_Demo/TFT_Touchscreen_Demo.ino b/examples/TFT_Touchscreen_Demo/TFT_Touchscreen_Demo.ino index a920304..d036b6e 100644 --- a/examples/TFT_Touchscreen_Demo/TFT_Touchscreen_Demo.ino +++ b/examples/TFT_Touchscreen_Demo/TFT_Touchscreen_Demo.ino @@ -54,6 +54,9 @@ // create an instance of the TFT Display Adafruit_ILI9341 tft = Adafruit_ILI9341(TFT_CS, TFT_DC); +// ---------- Touch Screen +Resistive_Touch_Screen tsn(PIN_XP, PIN_YP, PIN_XM, PIN_YM, XP_XM_OHMS); + // ------------ definitions const int howLongToWait = 6; // max number of seconds at startup waiting for Serial port to console @@ -75,9 +78,6 @@ void waitForSerial(int howLong) { } } -// ---------- Touch Screen -Resistive_Touch_Screen tsn(PIN_XP, PIN_YP, PIN_XM, PIN_YM, XP_XM_OHMS); - // ========== splash screen helpers ============================ // splash screen layout // When using default system fonts, screen pixel coordinates will identify top left of character cell @@ -145,7 +145,7 @@ void setup() { // ----- init TFT backlight pinMode(TFT_BL, OUTPUT); - analogWrite(TFT_BL, 255); // start at full brightness + analogWrite(TFT_BL, 255); // set backlight to full brightness // ----- init TFT display tft.begin(); // initialize TFT display