#include <TFT_eSPI.h>
TFT_eSPI tft= TFT_eSPI(TFT_CS, TFT_DC, TFT_MOSI, TFT_SCLK);
TFT_eSprite sprite = TFT_eSprite(&tft);
void setup() {
tft.init(); // Initialize the display
tft.setRotation(1); // Set display rotation
tft.fillScreen(TFT_BLACK); // Clear screen with black color
}
void loop() {
tft.fillScreen(TFT_BLACK); // Clear the screen
tft.setTextColor(TFT_WHITE); // Set text color to white
tft.drawString("Hello, Wokwi!", 10, 10); // Draw text at x=10, y=10
}