Komut
userNameWrite
Açıklama
Adınızı EEPROM'da saklayın. Güç kapalı olsa bile EEPROM daima kaydedilir.
Sözdizimi
Robot.userNameWrite (isim)
Parametreler
name: depolanacak dize
İadeler
Yok
Örnekler
#include <ArduinoRobot.h>
void setup ( ) {
Seri . başlar ( 9600 ) ;
Robot. begin ( ) ;
}
void loop ( ) {
Robot. userNameWrite ( "Aaa" ) ;
Robot. robotNameWrite ( "Robot" ) ;
Robot. cityNameWrite ( "Malmo" ) ;
Robot. countryNameWrite ( "İsveç" ) ;
Seri . println (Robot userNameRead ().);
Seri . println ( Robot. robotNameRead ( ) ) ;
Seri . println ( Robot. cityNameRead ( ) ) ;
Seri . println ( Robot. countryNameRead ( ) ) ;
}
void setup ( ) {
Seri . başlar ( 9600 ) ;
Robot. begin ( ) ;
}
void loop ( ) {
Robot. userNameWrite ( "Aaa" ) ;
Robot. robotNameWrite ( "Robot" ) ;
Robot. cityNameWrite ( "Malmo" ) ;
Robot. countryNameWrite ( "İsveç" ) ;
Seri . println (Robot userNameRead ().);
Seri . println ( Robot. robotNameRead ( ) ) ;
Seri . println ( Robot. cityNameRead ( ) ) ;
Seri . println ( Robot. countryNameRead ( ) ) ;
}
Ayrıca bakınız
- userNameRead ()
- robotNameRead ()
- robotNameWrite ()
- cityNameRead ()
- cityNameWrite ()
- countryNameRead ()
- countryNameWrite ()