megan gimple / Mbed 2 deprecated gimple_A5_Accel

Dependencies:   mbed MMA8452Q SDSD

Revision:
5:b286f58edcfa
Parent:
4:aa82d3dbbe0f
--- a/main.cpp	Sat Nov 20 04:45:50 2021 +0000
+++ b/main.cpp	Sat Nov 20 04:54:37 2021 +0000
@@ -71,13 +71,16 @@
         if(serial_reporting.read()>WRITETIME) {
             serial_reporting.reset();
             serial_reporting.start();
-            pc.printf("X,Y,Z[Gs]:%5.2f,%5.2f,%5.2f\r\n",accX_g,accY_g,accZ_g);
+            pc.printf("$ACC, Time Since Start%f[MS],X Acceleration%f[G],Y Acceleration%f[G],Z Acceleration%f[G]\r\n", t.read(), accX_g, accY_g, accZ_g);
         }
         //new file count every ten seconds or 50 data points
         if(data>=50){
             filecount=filecount+1;
             data=0;
         }
+    
+    light();
+    
     }
 }