EEPROM library page refers to 512-byte EEPROM

This reminds me that it would be nice to have a

#define ARDUINO_EEPROM_SIZE 1024

that varied from board to board.

Mikal

E2END is available by processor. Does that suffice?

Oh, yeah, that would work fine. I withdraw the #define request, but the Arduino documentation about the EEPROM size still ought to be tweaked.

I just noticed that both the EEPROM::read() and EEPROM::write() pages also refer to the 512 size.

Perhaps the sample code on those pages ought to use E2END.

M

What do you think about adding "size" to the EEPROM class?

unsigned EEPROM::size()
{
  return E2END + 1;
}

That seems pretty ideal!

I agree! And you've taken care of the hard bit. :smiley: