Prueba acelerometro - ejemplo recuperado

Dependencies:   MMA8451Q mbed

Fork of FRDM_MMA8451Q by Freescale

Files at this revision

API Documentation at this revision

Comitter:
fonz626
Date:
Sat May 16 21:37:16 2015 +0000
Parent:
9:d4bffe27a7bf
Commit message:
accelerometer

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r d4bffe27a7bf -r 5aae7cac1608 main.cpp
--- a/main.cpp	Wed Jul 16 10:30:54 2014 +0000
+++ b/main.cpp	Sat May 16 21:37:16 2015 +0000
@@ -33,7 +33,8 @@
         rled = 1.0f - x;
         gled = 1.0f - y;
         bled = 1.0f - z;
-        wait(0.1f);
+        wait(0.5f);
         printf("X: %1.2f, Y: %1.2f, Z: %1.2f\n", x, y, z);
+        wait(0.5f);
     }
 }