My problem is the following:
I like to store data in an EEPROM like
char errorflag[] = "1234567";
i2c_eeprom_write_page(0x50, 0, (byte *)errorflag, sizeof(errorflag));
Perfect, no problems so far. But how can I save a long stored in a variable instead? Of course the following is not working, but it shows my what I like to do:
long long_variable = 1234567;
char errorflag[] = long_variable;
i2c_eeprom_write_page(0x50, 0, (byte *)errorflag, sizeof(errorflag));
I tried quite a lot and it could not be to hard to figure it out but it seems I am to blind to see...