Daniel Levine / CircularBufferSDCardLib

Dependencies:   sd-driver_compatible_with_MAX32630FTHR

Fork of CircularBufferSDCardLib by Daniel Levine

Files at this revision

API Documentation at this revision

Comitter:
DVLevine
Date:
Thu Apr 05 08:58:36 2018 +0000
Parent:
6:a36eda5701df
Child:
8:c62a1aeda47a
Commit message:
Prepared As Library

Changed in this revision

exampleMain.cpp Show annotated file Show diff for this revision Revisions of this file
main.cpp Show diff for this revision Revisions of this file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/exampleMain.cpp	Thu Apr 05 08:58:36 2018 +0000
@@ -0,0 +1,50 @@
+/*
+
+#include "mbed.h"
+#include "dataRecorder.h"
+
+DataRecorder* boba = new DataRecorder();
+
+InterruptIn irq(PF_2);      
+DigitalOut led1(PE_0);
+
+
+int main() {
+  
+  printf("We are in! \n");
+  
+     uint16_t a = 123;
+     uint16_t b = 2034;
+     uint16_t c = 1040;
+     uint16_t d = 8;
+     uint16_t e = 980;
+
+     uint32_t ta = 2121;
+     uint32_t tb = 8181;
+     uint32_t tc = 6262;
+     uint32_t td = 3535;
+     uint32_t te = 1212;
+   
+    boba->logDistancePoint(a);
+    boba->logDistancePoint(b);
+    boba->logDistancePoint(c);
+    boba->logDistancePoint(d);
+    boba->logDistancePoint(e);
+
+    boba->logTimeStamp(ta);
+    boba->logTimeStamp(tb);
+    boba->logTimeStamp(tc);
+    boba->logTimeStamp(td);
+    boba->logTimeStamp(te);
+    
+
+    printf("about to save\n");
+
+    boba->saveLoggedDataAndClearBuffer("/fs/SUPERDATAYO.txt"); 
+
+    printf("saved\n");
+    
+    led1 = !led1;
+}
+
+*/
\ No newline at end of file
--- a/main.cpp	Thu Apr 05 04:21:25 2018 -0400
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,51 +0,0 @@
-#include "mbed.h"
-#include "dataRecorder.h"
-
-DataRecorder* boba = new DataRecorder();
-
-//For SDCard 
-// Set up the button
-InterruptIn irq(PF_2);      
-DigitalOut led1(PE_0);
-
-// 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;
-     uint16_t d = 8;
-     uint16_t e = 980;
-
-     uint32_t ta = 2121;
-     uint32_t tb = 8181;
-     uint32_t tc = 6262;
-     uint32_t td = 3535;
-     uint32_t te = 1212;
-   
-    boba->logDistancePoint(a);
-    boba->logDistancePoint(b);
-    boba->logDistancePoint(c);
-    boba->logDistancePoint(d);
-    boba->logDistancePoint(e);
-
-    boba->logTimeStamp(ta);
-    boba->logTimeStamp(tb);
-    boba->logTimeStamp(tc);
-    boba->logTimeStamp(td);
-    boba->logTimeStamp(te);
-    
-
-    printf("about to save\n");
-    //printf("ERE IS %i \n",ere);
-
-    boba->saveLoggedDataAndClearBuffer("/fs/SUPERDATAYO.txt"); 
-
-    printf("saved\n");
-    
-    led1 = !led1;
-}
-