// Plante car Wokwi implémente mal le ESP32-S3, Remplacer par ESP32 classique...
#define TFT_USER_SETUP_LOADED
#define ILI9341_DRIVER
#define TFT_WIDTH 240
#define TFT_HEIGHT 320
#define TFT_RGB_ORDER TFT_BGR
#define TFT_MOSI 23 // 45
#define TFT_SCLK 18 // 40
#define TFT_CS 5 // 42
#define TFT_DC 2 // 41
#define TFT_RST 17 // 39
#define TFT_MISO -1
//#define TFT_BL 48
//#define TFT_BACKLIGHT_ON HIGH
#define SPI_FREQUENCY 8000000
#define LOAD_GLCD
#define LOAD_FONT4
#define LOAD_FONT8
#define LOAD_GFXFF
#define SMOOTH_FONT
#include <TFT_eSPI.h>
TFT_eSPI tft;
void setup() {
Serial.begin(115200);
tft.init();
tft.setRotation(1);
tft.fillScreen(TFT_BLACK);
tft.setTextColor(TFT_YELLOW, TFT_BLACK);
tft.drawString("ESP32-S3 + ILI9341", 20, 20, 4);
}
void loop() {
delay(10);
}