i try to load a txt file in my wonderful 24c01 used in i2c way..
what do you suggest me to use for load it into it ? string sequence ? stream ?
i'd look on the library, but i did not see exemple of file's handles.
i try to load a txt file in my wonderful 24c01 used in i2c way..
what do you suggest me to use for load it into it ? string sequence ? stream ?
i'd look on the library, but i did not see exemple of file's handles.
If your .txt file located in SdCard read the file in chunks(size of chunk must equal to size of EEPROM memory block) Read/Write Serial EEPROM via I2C for 24c01 interfacing
PaulS:
Read a character, write to EEPROM, increment the address. Repeat until the end of the file is reached.
Assuming you want to read the content back from EEPROM at some point, you'd need to provide some way to know how long the 'file' was. You might be willing to remember the number of bytes that were written and hard-code that value in the code to read it - it would work, although it isn't an elegant solution.