extEEPROM
extEEPROM copied to clipboard
Clarification - const uint32_t totalKBytes = 1; for Microchip 24AA02
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
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.
👍 (this helped me today)