Ivone Sima / Mbed OS Accelerometer_exampleLab4

Dependencies:   MMA8451Q

Fork of Accelerometer_example by William Marsh

Files at this revision

API Documentation at this revision

Comitter:
Ivone
Date:
Thu Feb 15 18:28:42 2018 +0000
Parent:
1:31f0f53b08bd
Child:
3:ca2e99f6b193
Commit message:
Lab4

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Wed Feb 07 16:56:55 2018 +0000
+++ b/main.cpp	Thu Feb 15 18:28:42 2018 +0000
@@ -27,6 +27,21 @@
         gled = 1.0f - abs(y);
         bled = 1.0f - abs(z);
         Thread::wait(300);
-        pc.printf("X: %1.2f, Y: %1.2f, Z: %1.2f\n", x, y, z);
+        
+       
+        
+           pc.printf("X:flat ,Y:right ,Z:left\n", x,y,z);
+        
+       
+       // if (x> 0){
+            
+       // pc.printf("X:flat ,Y:right ,Z:left\n", x,y,z);
+            
+       //}
+       //pc.printf("X: %1.2f, Y: %1.2f, Z: %1.2f\n", x, y, z);
+        
+        
+        
+      
     }
 }