Lab4Code2(modified version)

Dependencies:   MMA8451Q

Fork of Accelerometer_example by William Marsh

Files at this revision

API Documentation at this revision

Comitter:
Tobden
Date:
Fri Feb 16 23:39:39 2018 +0000
Parent:
1:31f0f53b08bd
Child:
3:2e32120a45f3
Commit message:
Version 1

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	Fri Feb 16 23:39:39 2018 +0000
@@ -27,6 +27,6 @@
         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: %1.2f, Y: %1.2f, Z: %1.2f\n\r", x, y, z);
     }
 }