
lab eeprom
Fork of Nucleo_eeprom by
Revision 0:8b5e53600ba0, committed 2015-08-25
- Comitter:
- soulx
- Date:
- Tue Aug 25 11:59:57 2015 +0000
- Child:
- 1:8b005d040c91
- Commit message:
- lab EEPROM
Changed in this revision
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/eeprom.lib Tue Aug 25 11:59:57 2015 +0000 @@ -0,0 +1,1 @@ +https://developer.mbed.org/teams/FRA221_2015/code/eeprom/#e91aa7bef1f9
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Tue Aug 25 11:59:57 2015 +0000 @@ -0,0 +1,17 @@ +#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]); + +} \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Tue Aug 25 11:59:57 2015 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/mbed/builds/8ed44a420e5c \ No newline at end of file