Modifications

Sauter à la navigation Sauter à la recherche
118 octets ajoutés ,  17 septembre 2013 à 09:44
Ligne 6 : Ligne 6 :  
Classe [[Arduino Robot-Librairie#Classe_RobotControl|RobotControl]], librairie d'[[Arduino Robot-Librairie|Arduino Robot]].
 
Classe [[Arduino Robot-Librairie#Classe_RobotControl|RobotControl]], librairie d'[[Arduino Robot-Librairie|Arduino Robot]].
   −
Initialize the TFT module. All general TFT functions are dependent on this.  
+
Initialise le module TFT (écran). Et toutes les fonctions générales du TFT qui en dépendent.
    
== Syntaxe ==
 
== Syntaxe ==
Ligne 16 : Ligne 16 :  
== Paramètres ==
 
== Paramètres ==
   −
* premierPlan: ("foreGround" en anglais) set a universal foreground color. Default is black.
+
* premierPlan: ("foreGround" en anglais) définir la couleur de premier plan (aussi celle du texte). Noir ("black" en anglais) par défaut.
* arrierePlan: ("backGround" en anglais) set a universal background color. Default is white.  
+
* arrierePlan: ("backGround" en anglais) définit la couleur de l'arrière plan. blanc ("white" en anglais) par défaut.
    
== Résultat ==
 
== Résultat ==
Ligne 29 : Ligne 29 :  
void setup(){
 
void setup(){
 
   Robot.begin();
 
   Robot.begin();
   Robot.beginTFT();//Initialize the TFT module
+
   Robot.beginTFT();//Initialise le module TFT
 
}
 
}
   Ligne 37 : Ligne 37 :  
   delay(2000);
 
   delay(2000);
    +
  // Il est nécessaire d'effacer l'ancien texte avant d'écrire le nouveau
 
   Robot.fill(0,0,0);
 
   Robot.fill(0,0,0);
   Robot.text("Hello World",0,0,false);//It's necessary to erase the old text, before showing new text
+
   Robot.text("Bonjour le mode",0,0,false);
    
   Robot.fill(255,255,255);
 
   Robot.fill(255,255,255);
   Robot.text("I am a robot",0,0);
+
   Robot.text("Je suis un robot",0,0);
 
   delay(3000);
 
   delay(3000);
    
   Robot.fill(0,0,0);
 
   Robot.fill(0,0,0);
   Robot.text("I am a robot",0,0);
+
   Robot.text("Je suis un robot",0,0);
 
}</nowiki>
 
}</nowiki>
  
29 917

modifications

Menu de navigation