PaoloP74 / extEEPROM

Arduino library to support external I2C EEPROMs.
Other
33 stars 13 forks source link

Clarification - const uint32_t totalKBytes = 1; for Microchip 24AA02 #11

Open JonRobert opened 5 years ago

JonRobert commented 5 years ago

Hello, I'm just starting to use EEPROMs and quite frankly am still struggling with the addressing. I am trying to use your extEEPROM driver and am getting errors (see below). I expect I have a wrong setup value but am at a loss to find the correct one. (I'm using Arduino IDE 1.8.9)

My settings are: //One 24AA02 EEPROMs on the bus const uint32_t totalKBytes = 1; //for read and write test functions extEEPROM eep(kbits_2, 1, 8); //device size, number of devices, page size uint8_t chunkSize = 4;

Thank you for your library and help

Regards John

extEEPROM_output.txt

tehbiga commented 1 year ago

Necro-post, but in case anyone else shows up:

For small EEPROMs just change the variable to be totalBytes and remove all of the * 1024. It's significantly less confusing on initial read after that.

BlackBrix commented 1 year ago

👍 (this helped me today)