extEEPROM icon indicating copy to clipboard operation
extEEPROM copied to clipboard

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

Open JonRobert opened this issue 5 years ago • 2 comments

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

JonRobert avatar Jun 07 '19 16:06 JonRobert

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.

tehbiga avatar Feb 23 '23 22:02 tehbiga

👍 (this helped me today)

BlackBrix avatar Jun 29 '23 05:06 BlackBrix