Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <EEPROM.h>
- void setup() {
- Serial.begin(9600);
- // Write data to EEPROM
- EEPROM.write(0, 123); // Write byte value 123 to address 0
- // Read data from EEPROM
- int value = EEPROM.read(0); // Read byte value from address 0
- Serial.println(value);
- }
- void loop() {
- // Your loop code
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement