#include <LEEPROM.h>
void setup() {
// Insert your setup code here to run it once:
}
void loop() {
// Insert your main code here to run it repeatedly:
byte a = 1;
EEPROM.write(0, a);
byte b = EEPROM.read(0);
if (a == b)
{
// Do something.
delay(2000);
}
}