#include <TFT_eSPI.h> // Include the TFT_eSPI library
#include <user_setup.h> // Include the user setup file
#include <user_setup_select.h> // Create an instance of the TFT_eSPI class
TFT_eSPI tft = TFT_eSPI();
void setup() {
Serial.begin(115200); // Start serial communication for debugging
// Initialize the TFT display
tft.init();
// Set the display rotation (adjust if needed)
tft.setRotation(1);
// Fill the screen with a blue color
tft.fillScreen(TFT_BLUE);
// Set text color to white
tft.setTextColor(TFT_WHITE);
// Set text size
tft.setTextSize(2);
// Set the cursor position
tft.setCursor(10, 10);
// Print a test message to the display
tft.println("Test Message");
// Print to Serial Monitor for debugging
Serial.println("Display initialized and test message printed");
}
void loop() {
// Nothing to do here
}