Home Page | Language Reference (extended) | SD Reference | Libraries | Comparison | Changes


Robot

userNameWrite()

Description

Store your name into EEPROM. EEPROM is always saved, even when the power is switched off.

Syntax

Robot.userNameWrite(name)

Parameters

name: string to be stored

Returns

none

Examples

#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" ) ;   Serial.println (Robot.userNameRead ( ) ) ;
  Serial.println (Robot.robotNameRead ( ) ) ;
  Serial.println (Robot.cityNameRead ( ) ) ;
  Serial.println (Robot.countryNameRead ( ) ) ;
}

See also


Reference Home

Corrections, suggestions, and new documentation should be posted to the Forum.

The text of the Arduino reference is licensed under a Creative Commons Attribution-ShareAlike 3.0 License. Code samples in the reference are released into the public domain.