diff --git a/src/main.cpp b/src/main.cpp index d2da9b4..0fa7c06 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1,9 +1,5 @@ #include - - - - /* Rui Santos & Sara Santos - Random Nerd Tutorials THIS EXAMPLE WAS TESTED WITH THE FOLLOWING HARDWARE: 1) ESP32-2432S028R 2.8 inch 240×320 also known as the Cheap Yellow Display (CYD): https://makeradvisor.com/tools/cyd-cheap-yellow-display-esp32-2432s028r/ @@ -62,8 +58,8 @@ void printTouchToSerial(int touchX, int touchY, int touchZ) { // Print Touchscreen info about X, Y and Pressure (Z) on the TFT Display void printTouchToDisplay(int touchX, int touchY, int touchZ) { // Clear TFT screen - tft.fillScreen(TFT_WHITE); - tft.setTextColor(TFT_BLACK, TFT_WHITE); + tft.fillScreen(TFT_GREEN); + tft.setTextColor(TFT_RED, TFT_WHITE); int centerX = SCREEN_WIDTH / 2; int textY = 80; @@ -105,6 +101,7 @@ void setup() { tft.drawCentreString("Hello, world!", centerX, 30, FONT_SIZE); tft.drawCentreString("Touch screen to test", centerX, centerY, FONT_SIZE); + delay(5000); } void loop() {