Basic read/write from flash.

Dependencies:   mbed-modifed

Revision:
3:50a42705f3ea
Parent:
2:118a2f154b78
--- a/main.cpp	Mon Nov 09 19:44:16 2015 +0000
+++ b/main.cpp	Mon Nov 09 19:52:31 2015 +0000
@@ -9,6 +9,18 @@
 int offset = 0;
 int roffset = 0;
 
+struct reading {
+    float latitude;     //Signed positive if N, negative if S
+    float longitude;    //Signed positive if W, negative if E
+    float temperature;
+    float pH;
+    uint8_t day;
+    uint8_t month;
+    uint8_t year;
+    uint8_t hour;
+    uint8_t minutes;
+};
+
 //This function writes a byte of data to the EEPROM at the appropriate location.
 //This is called by my writeEEPROMbytes.
 //Use this if you want to write a single byte.