|
|
|
|
|
void setup() { // Write a byte to EEPROM location 0 EEPROM.writeAt(0, 10);
// Read the data from EEPROM location 10 data = EEPROM.read(10); Serial.print("Data at location 10: "); Serial.println(data);
#include <EEPROM.h>
The syntax of the WriteAt command is as follows:
void setup() { // Write a byte to EEPROM location 0 EEPROM.writeAt(0, 10);
// Read the data from EEPROM location 10 data = EEPROM.read(10); Serial.print("Data at location 10: "); Serial.println(data);
#include <EEPROM.h>
The syntax of the WriteAt command is as follows: