esp32_lilygo_t-display-s3 | Last modified: 1745169201 | Edit | Home

LILYGO T-Display-S3

// https://doc-tft-espi.readthedocs.io/tft_espi/methods/drawstring/

#include <TFT_eSPI.h>

TFT_eSPI tft = TFT_eSPI();

void setup() {
  tft.begin();
  tft.setRotation(1);
  tft.setTextColor(TFT_WHITE, TFT_BLACK);
}

void loop() {
  tft.fillScreen(TFT_BLACK);
  tft.drawString("Hello world !", 50, 70, 4);
  delay(500);
  tft.fillScreen(TFT_BLACK);
  delay(500);
}