A set of data recording functions to locally store data in a circular buffer, with functions for offloading to an SD Card when convenient. dataRecorderr.h shows accessible functions to the main program - all direct SD operations are abstracted away by the library. When using this library, #include dataRecorder.h
Dependencies: sd-driver_compatible_with_MAX32630FTHR
Fork of CircularBufferSDCardLib by
Diff: main.cpp
- Revision:
- 4:fe6d2823b7cb
- Parent:
- 3:df8fb1b5d868
- Child:
- 5:0a4ff027086c
--- a/main.cpp Wed Apr 04 17:15:36 2018 -0400 +++ b/main.cpp Thu Apr 05 01:22:57 2018 -0400 @@ -11,7 +11,9 @@ // main() runs in its own thread in the OS int main() { //create value (16 bit like prox reading) - + + printf("We are in! \n"); + uint16_t a = 123; uint16_t b = 2034; uint16_t c = 1040; @@ -36,11 +38,14 @@ boba->logTimeStamp(d); boba->logTimeStamp(e); - + + printf("about to save\n"); //printf("ERE IS %i \n",ere); - boba->saveLoggedDataAndClearBuffer("SUPERDATAYO.txt"); - + boba->saveLoggedDataAndClearBuffer("/fs/SUPERDATAYO.txt"); + + printf("saved\n"); + led1 = !led1; }