Advertisement
RuiViana

EEPROM_RCB

Jan 8th, 2017
258
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.55 KB | None | 0 0
  1. #include<EEPROM.h>
  2. char valor;
  3. String nome = "";
  4. //---------------------------------
  5. void setup()
  6. {
  7.   Serial.begin(9600);
  8. }
  9. //----------------------------------
  10. void loop()
  11. {
  12.   //Serial.println ('R'+'u'+'y'+'t'+'e'+'r');
  13. /*
  14.   EEPROM.write(0, 'R');
  15.   EEPROM.write(1, 'u');
  16.   EEPROM.write(2, 'y');
  17.   EEPROM.write(3, 't');
  18.   EEPROM.write(4, 'e');
  19.   EEPROM.write(5, 'r');
  20.   while(1){}
  21. */
  22.   for (int i = 0; i < 6; i ++)
  23.   {
  24.     valor = EEPROM.read(i);
  25.     nome += String(valor);
  26.   }
  27.   Serial.println(nome);
  28.   delay(1000);
  29.   nome = "";
  30. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement