Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
main.cpp
- Committer:
- soulx
- Date:
- 2015-08-25
- Revision:
- 0:8b5e53600ba0
- Child:
- 1:8b005d040c91
File content as of revision 0:8b5e53600ba0:
#include "mbed.h" #include "eeprom.h" EEPROM memory(I2C_SDA,I2C_SCL,EEPROM_Address); int main() { char value='A'; char data[2]; memory.write(1,value); memory.write(2,'a'); memory.read(1,data,2); printf("read[1] = %c\n",data[0]); printf("read[2] = %c\n",data[1]); }