LILYGO T-Display-S3
-
https://doc-tft-espi.readthedocs.io/tft_espi/methods/drawstring/#
-
Téléchargement des bibliothèques:
- ''$ cd Arduino''
- ''$ git clone https://github.com/Xinyuan-LilyGO/T-Display-S3.git''
- ''$ cp -r T-Display-S3/lib/* ~/Arduino/libraries/'' (créer le dossier s'il n'existe pas)
-
Utilisation version antérieur du firmware de la board ([[https://github.com/Bodmer/TFT_eSPI/issues/3355]]): Tools -> Board -> Boards manager -> search ESP32 by Espressif -> Install version 2.0.17
-
Select board LILYGO T-Dysplay-S3
-
Setect port /dev/ttACM0
// 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);
}
