Skip to content

It is required to write the structure to the eeprom ds2431 #8

@blokerun

Description

@blokerun

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)?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions