Modifications

Sauter à la navigation Sauter à la recherche
aucun résumé de modification
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]].
   −
Write a HIGH or a LOW value to the defined port on the robot. the ports are exposed on the robot as TinkerKit connectors.  
+
Ecrire un niveau haut ou bas avec HIGH et LOW pour définir la valeur d'un port sur le robot. Les ports du robot sont exposés comme des connecteurs TinkerKit.  
    
== Syntaxe ==
 
== Syntaxe ==
Ligne 14 : Ligne 14 :  
== Paramètres ==
 
== Paramètres ==
   −
port: TKD0 to TKD5 (on the Control board), B_TK1 to B_TK4(on the Motor Board), or LED1 (located on the control board)
+
'''port''': TKD0 à TKD5 (sur la carte de contrôle), B_TK1 à B_TK4 (sur la carte moteur) ou LED1 (localisé sur la carte de contrôle)
   −
valeur: HIGH or LOW  
+
'''valeur''': HIGH ou LOW respectivement pour niveau haut et niveau bas.
    
== Résultat ==
 
== Résultat ==
Ligne 30 : Ligne 30 :     
void loop(){
 
void loop(){
   Robot.digitalWrite(TDK0, HIGH); // Turn on a Tinkerkit LED connected to TDK0
+
   Robot.digitalWrite(TDK0, HIGH); // Activer une LED Tinkerkit connectée sur TDK0
 
   delay(1000);
 
   delay(1000);
   Robot.digitalWrite(TK0, LOW); // Turn the LED off
+
   Robot.digitalWrite(TK0, LOW); // éteindre la LED
 
   delay(1000);
 
   delay(1000);
 
}</nowiki>
 
}</nowiki>
    
== Note ==
 
== Note ==
You cannot call Robot.digitalWrite() on TK0 to TK7
+
Vous ne pouvez pas faire de Robot.digitalWrite() sur TK0 à TK7
 +
 
 +
'''Carte de contrôle:'''
 +
 
 +
[[Fichier:RB-ARD-ROBOT-30.png]]
 +
 
 +
'''Carte moteur:'''
 +
 
 +
[[Fichier:RB-ARD-ROBOT-31.png]]
    
== Voir aussi ==
 
== Voir aussi ==
* [[RB-ARD-ROBOT-Func-beginSpeaker|beginSpeaker()]]
+
* [[RB-ARD-ROBOT-Func-digitalRead|digitalRead()]]
* [[RB-ARD-ROBOT-Func-beginLCD|beginLCD()]]
+
* [[RB-ARD-ROBOT-Func-analogRead|analogRead()]]
 +
* [[RB-ARD-ROBOT-Func-analogWrite|analogWrite()]]
 +
 
 
{{Arduino-Robot-TRAILER}}
 
{{Arduino-Robot-TRAILER}}
29 917

modifications

Menu de navigation