It is required to write the structure to the eeprom ds2431:
``typedef struct MyStruct
{
int8_t c0 = 10;
int8_t c1 = 9;
int8_t c2 = 8;
int8_t c3 = 7;
int8_t c4 = 6;
int8_t c5 = 5;
int8_t c6 = 4;
int8_t c7 = 3;
int8_t c8 = 2;
};
MyStruct myStruct;
eeprom.write(0, (void*)&myStruct, sizeof(myStruct))``
But only the first 8 bytes are written. How to write a large structure (more than 8 bytes)?
It is required to write the structure to the eeprom ds2431:
``typedef struct MyStruct
{
int8_t c0 = 10;
int8_t c1 = 9;
int8_t c2 = 8;
int8_t c3 = 7;
int8_t c4 = 6;
int8_t c5 = 5;
int8_t c6 = 4;
int8_t c7 = 3;
int8_t c8 = 2;
};
MyStruct myStruct;
eeprom.write(0, (void*)&myStruct, sizeof(myStruct))``
But only the first 8 bytes are written. How to write a large structure (more than 8 bytes)?