FRA221-2018
/
Nucleo_eeprom
Nucleo_eeprom
Fork of Nucleo_eeprom by
Diff: main.cpp
- Revision:
- 11:8d8c3e003153
- Parent:
- 10:374723606fc9
- Child:
- 12:4c5be5aadf51
--- a/main.cpp Tue Nov 06 07:13:07 2018 +0000 +++ b/main.cpp Tue Nov 06 07:37:23 2018 +0000 @@ -19,7 +19,7 @@ wait_ms(1); /// Read data from address 1 to 4, and store in data array - memory.read(1,data,4); + memory.read(0x0001,data,4); wait_ms(1); printf("read[1] = %c\n",data[0]); @@ -36,5 +36,12 @@ wait_ms(1); printf("float = %f\n",x); + + /// Read data from address 1 to 4, and store in data array + memory.read(0x000A,data,4); + printf("read[1]:0x000A = %X\n",data[0]); + printf("read[2]:0x000B = %X\n",data[1]); + printf("read[3]:0x000C = %X\n",data[2]); + printf("read[4]:0x000D = %X\n",data[3]); } \ No newline at end of file