Tutoriel Arduino

Matériel

Montage

Code

#include <TFT.h>
#include <SPI.h>
 
#define CS 10
#define DC 9
#define RESET 8
 
TFT TFTscreen = TFT(CS, DC, RESET);
 
void setup() {
 TFTscreen.begin();
 
 TFTscreen.background(0, 0, 0); // Fond noir
 TFTscreen.stroke(255, 255, 255); // Texte blanc
 TFTscreen.setTextSize(2);
 TFTscreen.text("Hello world\n", 0, 0);
}
 
void loop() {
  // Rien
}