Advertisement
RuiViana

RW_EEPROM

Jun 21st, 2016
245
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.33 KB | None | 0 0
  1. #include <EEPROM.h>
  2. void setup()
  3. {
  4.   Serial.begin(9600);
  5. }
  6.  
  7. void loop()
  8. {
  9.   for (int i = 0; i < 30; i+3)
  10.   {
  11.     EEPROM.write(i++, 10);
  12.     EEPROM.write(i++, 7);
  13.     EEPROM.write(i++, 8);
  14.   }
  15.  
  16.   for (int i = 0; i < 30; i++)
  17.   {
  18.     int leitura = EEPROM.read(i);
  19.     Serial.println(leitura,HEX);
  20.   }
  21.   while(1) {}
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement