Ligne 33 : |
Ligne 33 : |
| void setup(){ | | void setup(){ |
| Robot.begin(); | | Robot.begin(); |
− | Robot.beginTFT();//Initialize the TFT module | + | Robot.beginTFT();//Initialise le module TFT |
| } | | } |
| | | |
| void loop(){ | | void loop(){ |
− | Robot.text("Hello World",0,0,true); | + | Robot.fill(255,255,255); |
| + | Robot.text("Hello World",0,0); |
| delay(2000); | | delay(2000); |
| | | |
− | Robot.text("Hello World",0,0,false);//It's necessary to erase the old text, for showing new text | + | // Il est nécessaire d'effacer l'ancien texte avant d'écrire le nouveau |
− | Robot.text("I am a robot",0,0,true); | + | Robot.fill(0,0,0); |
| + | Robot.text("Bonjour le mode",0,0,false); |
| + | |
| + | Robot.fill(255,255,255); |
| + | Robot.text("Je suis un robot",0,0); |
| delay(3000); | | delay(3000); |
| | | |
− | Robot.text("I am a robot",0,0,false); | + | Robot.fill(0,0,0); |
− | }</nowiki> | + | Robot.text("Je suis un robot",0,0); |
| + | } |
| + | </nowiki> |
| | | |
| == Voir aussi == | | == Voir aussi == |