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.
Diff: main.cpp
- Revision:
- 13:d4ed04e04e9b
- Parent:
- 12:4c5be5aadf51
- Child:
- 14:f7e3d84f3970
--- a/main.cpp	Tue Nov 06 07:46:45 2018 +0000
+++ b/main.cpp	Tue Nov 06 08:03:08 2018 +0000
@@ -18,7 +18,7 @@
     memory.write(0x0002,(int8_t)'c');
     wait_ms(1);
     
-    /// Read data from address 1 to 4, and store in data array  
+    /// Read data from address 0x0001 to 0x0004, and store in data array  
     memory.read(0x0001,data,4);
     wait_ms(1);
     
@@ -27,7 +27,7 @@
     printf("read[3] = %c\n",data[2]);
     printf("read[4] = %c\n",data[3]);
 
-    //// Write float data 
+    //// Write float data to address 0x000A
     memory.write(0x000A,j);
     wait_ms(1);
 
@@ -37,7 +37,7 @@
     
     printf("float = %f\n",x);
     
-    /// Read data from address 1 to 4, and store in data array  
+    /// Read data from address 0x000A to 0x000D, and store in data array  
     memory.read(0x000A,data,4);
     printf("read[1]:0x000A = %X\n",(uint8_t)data[0]);
     printf("read[2]:0x000B = %X\n",(uint8_t)data[1]);