bambangSud

Ram2EEprom

Jul 28th, 2013
213
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. #include <EEPROM.h>
  2. char RamArray[]="1234";
  3.  
  4. void setup()
  5. {
  6. // write a 0 to all 512 bytes of the EEPROM
  7. for (int i = 0; i < 4; i++)
  8. EEPROM.write(i, RamArray[i]); // mindah isi ram ke eeprom
  9.  
  10. // turn the LED on when we're done
  11. digitalWrite(13, HIGH);
  12. }
  13.  
  14. void loop()
  15. {
  16.  
  17. }
Advertisement
Add Comment
Please, Sign In to add comment