Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
9 years, 8 months ago.
Single Byte read
Hallo. Is there any special reason why there is no function for single byte read?
Question relating to:
2 Answers
9 years, 8 months ago.
You can use the multibyte read and set size to 1. The code for a single byte read would be just about identical and just makes the lib larger.
The code for single and multi byte write on the other hand has more differences. BTW a quick look at the code shows that multibyte write is probably not very efficiently implemented. The memory address is set again for each byte. This should be auto-incremented by the EEPROM.
Great. I will look forward to optimize multi byte write and make a pull request. Will take some time until my pcbs arrive. Do you recommend any other lib for 24LC64 as a "standard"?
posted by 01 Apr 2015The component page has some examples https://developer.mbed.org/components/cat/storage/
posted by 01 Apr 2015The multibyte write didn't work as it didn't recognized page size. (You can not write over the page border). We have cleaned up and added a correct multibyte write to the library here: http://developer.mbed.org/teams/Akafugu/code/_24LCXXX/
Pull requests are pending.
posted by 15 Apr 20159 years, 7 months ago.
Thank you everyone.
I'm not familiar with how to use the mbed web. I published a half-hearted Archives that made the time being. It seems to have become as they left the state.
Like I have in the code that was written there was a bug. I am grateful. you for correction.