#include <Arduino.h>
#include <SPI.h>
#include <Adafruit_GFX.h>
#include <Adafruit_ILI9341.h>
#define TFT_CS 5
#define TFT_DC 2
#define TFT_RST 25
#define TFT_MOSI 23
#define TFT_SCLK 18
#define TFT_MISO 19
Adafruit_ILI9341 tft = Adafruit_ILI9341(TFT_CS, TFT_DC, TFT_RST);
void setup() {
Serial.begin(115200);
tft.begin();
tft.setRotation(0);
tft.fillScreen(ILI9341_BLACK);
tft.setCursor(30, 120);
tft.setTextColor(ILI9341_GREEN);
tft.setTextSize(2);
tft.println("HELLO ESP32-S3!");
}
void loop() {
// nothing needed here
}