I use the following example: #include "Arduino.h" #include "EEPROM.h"
int addr = 0;
void setup()
{
}
void loop()
{
int val = analogRead(0) / 4;
EEPROM.write(addr, val);
addr = addr + 1;
if (addr == 512)
addr = 0;
delay(100);
}
I get the error: 'EEPROM' was not declared in this scope.
What is wrong?