// /*
// ESP32-S3 + ILI9341 TFT LCD Example
// https://wokwi.com/projects/343784047735997012
// */
#include "SPI.h"
#include "Adafruit_GFX.h"
#include "Adafruit_ILI9341.h"
#define TFT_DC 2
#define TFT_CS 15
#define TFT2_DC 1
#define TFT2_CS 16
Adafruit_ILI9341 tft = Adafruit_ILI9341(TFT_CS, TFT_DC);
Adafruit_ILI9341 tft2 = Adafruit_ILI9341(TFT2_CS, TFT2_DC);
void setup() {
Serial.begin(115200);
Serial.println("Welcome to Wokwi, ESP32-S3");
Wire.begin(10,8);
tft.begin();
tft2.begin();
tft.setCursor(44, 120);
tft.setTextColor(ILI9341_RED);
tft.setTextSize(3);
tft.println("ESP32-S3");
tft2.setCursor(44, 120);
tft2.setTextColor(ILI9341_GREEN);
tft2.setTextSize(2);
tft2.println("SUG MIN ROEV");
}
const uint32_t colors[] = {
ILI9341_GREEN,
ILI9341_CYAN,
ILI9341_MAGENTA,
ILI9341_YELLOW,
};
uint8_t colorIndex = 0;
void loop() {
tft.setTextSize(2);
tft.setCursor(26, 164);
tft.setTextColor(colors[colorIndex++ % 4]);
tft.println("Welcome to Wokwi!");
delay(250);
tft2.setTextSize(2);
tft2.setCursor(26, 164);
tft2.setTextColor(colors[colorIndex++ % 4]);
tft2.println("Welcome to sKUUG!");
delay(250);
}
Loading
esp32-s3-devkitc-1
esp32-s3-devkitc-1
Loading
ili9341-cap-touch
ili9341-cap-touch