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]]. |
| | | |
− | Reads the digital value one the defined port. These are exposed as TinkerKit connectors on the robot. See the diagrams below for pin locations.
| + | Lit la valeur digitale sur une port définit. Ils sont exposé comme des connecteurs TinkerKit sur le robot.Voyez le diagramme ci-dessous pour identifier la location des broches. |
| | | |
| == Syntaxe == | | == Syntaxe == |
Ligne 14 : |
Ligne 14 : |
| == Paramètres == | | == Paramètres == |
| | | |
− | '''port''': Valid names are TK0 to TK7 (found on the Control board), TKD0 to TKD5 (on the Control board), and B_TK1 to B_TK4 (on the Motor Board). | + | '''portName''': Un nom de port valide, entre TK0 et TK7 (localisé sur la carte de contrôle), TKD0 et TKD5 (sur la carte de contrôle), et de B_TK1 à B_TK4 (sur la carte moteur). |
| | | |
| == Résultat == | | == Résultat == |
| | | |
− | HIGH or LOW | + | HIGH ou LOW... niveau Haut ou niveau bas. |
| | | |
| == Exemple == | | == Exemple == |
Ligne 29 : |
Ligne 29 : |
| } | | } |
| void loop(){ | | void loop(){ |
− | Serial.println(Robot.digitalReadPort(TK0)); //Print the value read on port TK0 | + | Serial.println(Robot.digitalReadPort(TK0)); //Afficher la valeur lue sur le port TK0 |
| delay(100); | | delay(100); |
| }</nowiki> | | }</nowiki> |
| | | |
− | {{traduction}}
| + | '''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-analogRead|analogRead()]] | | * [[RB-ARD-ROBOT-Func-analogRead|analogRead()]] |
− | {{traduction}}
| + | * [[RB-ARD-ROBOT-Func-digitalWrite|digitalWrite()]] |
− | * [[RB-ARD-ROBOT-Func-beginLCD|beginLCD()]] | + | * [[RB-ARD-ROBOT-Func-analogWrite|analogWrite()]] |
| + | |
| {{Arduino-Robot-TRAILER}} | | {{Arduino-Robot-TRAILER}} |