Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed MMA8452Q SDSD
Diff: main.cpp
- 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();
+    
     }
 }
 
    