I have just started working with a variety of I2C components for a timer/clock project and have been really liking the ease and efficiency of use for small data (byte by byte transmission, etc). Currently I am mainly trying to work with the DS3231I Real Time Clock and AT24C32 I2C EEPROM
Once I get these working together I’d like to print via 16x2 I2C LCD . I have worked through a few of the different compiled libraries for I2C for Arduino and have yet to come across a function similar to a avr/eeprom.h library’s EEPROM block write/read function
eeprom_write_block((const void*)&datastructure, (void*)startaddress, sizeof(datastructure));)
I would like to store a small data structure of a variety of program settings, variables, and sensor data in the AT24C32 via I2C since it is battery powered, so that I could have these saved in the event of a power loss. If anyone has any idea how to do this, my programming skills are quite minimal and I don’t want to read a whole data structure in byte by byte (manually) unless that is the only option. If anyone has a library that would do this or knows where to find one or a quick way to implement this it’d be much appreciate. Thanks ahead of time!