Modifications

Sauter à la navigation Sauter à la recherche
1 383 octets ajoutés ,  17 septembre 2013 à 13:16
Page créée avec « {{Arduino-Robot-NAV}} <h4>userNameReas()</h4> == Description == Read the name stored in EEPROM. The name is set by userNameWrite(). EEPROM is not erased when the robot is t... »
{{Arduino-Robot-NAV}}

<h4>userNameReas()</h4>

== Description ==
Read the name stored in EEPROM. The name is set by userNameWrite(). EEPROM is not erased when the robot is turned off and can be read anytime after being set.

== Syntaxe ==

Robot.userNameRead(container)

== Paramètres ==

container: a char array with 8 elements.

== Résultat ==

aucun

== Exemple ==

<nowiki>#include <ArduinoRobot.h>

void setup(){
Serial.begin(9600);
Robot.begin();
}

void loop(){
Robot.userNameWrite("Aaa");
Robot.robotNameWrite("The Robot");
Robot.cityNameWrite("Malmo");
Robot.countryNameWrite("Sweden");

char container[8];
Robot.userNameRead(container)
Serial.println(container);

Robot.robotNameRead(container)
Serial.println(container);

Robot.cityNameRead(container)
Serial.println(container);

Robot.countryNameRead(container)
Serial.println(container);
}</nowiki>

== Voir aussi ==
* [[RB-ARD-ROBOT-Func-userNameWrite|userNameWrite()]]
* [[RB-ARD-ROBOT-Func-robotNameWrite|robotNameWrite()]]
* [[RB-ARD-ROBOT-Func-cityNameWrite|cityNameWrite()]]
* [[RB-ARD-ROBOT-Func-countryNameWrite|countryNameWrite()]]
* [[RB-ARD-ROBOT-Func-userNameRead|userNameRead()]]
* [[RB-ARD-ROBOT-Func-robotNameRead|robotNameRead()]]
* [[RB-ARD-ROBOT-Func-cityNameRead|cityNameRead()]]
* [[RB-ARD-ROBOT-Func-countryNameRead|countryNameRead()]]

{{Arduino-Robot-TRAILER}}
29 918

modifications

Menu de navigation