Hello, newbie here
While playing with an eeprom AT24C32 i've only found code that would allow us to write a byte or a page at a time. Since that made the code less readable i created a lib that abstracts both the Wire.h 32 byte buffer and the page size of the EPROM.
Now you can just code things like
Class Person {
 int age;
 int size;
}
Person p;
Write(100, p); // 100 is the address you want to start writing to.
without having to calculate where you should write how many bytes to avoid page wraps and things like that.
This code was naturally inspired after reading other coders' code so thank you all
The code can be found here: Atmel-AT24Cx Lib
Any suggestions?
Thanks