KX022 accelerometer library test program

Dependencies:   KX022 mbed

Revision:
2:b958ed2f998d
Parent:
0:b5c7d79e5d7c
--- a/main.cpp	Wed Dec 30 16:18:11 2015 +0000
+++ b/main.cpp	Mon Sep 19 12:42:59 2016 +0000
@@ -6,10 +6,10 @@
 KX022 acc(I2C_SDA, I2C_SCL);
 
 int main() {
-    pc.printf("\nKX022 Accelerometer library test program.\n");
+    pc.printf("\nKX022 Accelerometer library test program.\n\r");
     
     while(1) {
         wait(0.5);
-        pc.printf("x=%7.4f, y=%7.4f, z=%7.4f\n", acc.getAccX(), acc.getAccY(), acc.getAccZ());
+        pc.printf("x=%7.4f, y=%7.4f, z=%7.4f\n\r", acc.getAccX(), acc.getAccY(), acc.getAccZ());
     }
 }