Basic read/write from flash.
Dependencies: mbed-modifed
Revision 3:50a42705f3ea, committed 2015-11-09
- Comitter:
- Dilsher
- Date:
- Mon Nov 09 19:52:31 2015 +0000
- Parent:
- 2:118a2f154b78
- Commit message:
- Created struct for reading
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r 118a2f154b78 -r 50a42705f3ea main.cpp --- 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.