send microbit compass and accelerometer data

Dependencies:   microbit

Fork of compass_data_sender by Kinga Magyar

Files at this revision

API Documentation at this revision

Comitter:
kinga
Date:
Thu Feb 09 13:17:51 2017 +0000
Parent:
1:d034c78be66a
Child:
3:92910c8d63e4
Commit message:
added comma to end

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Wed Feb 08 16:18:57 2017 +0000
+++ b/main.cpp	Thu Feb 09 13:17:51 2017 +0000
@@ -19,7 +19,7 @@
       int x = uBit.accelerometer.getX();
       int y = uBit.accelerometer.getY();
       int z = uBit.accelerometer.getZ();
-      ManagedString message = (ManagedString)heading + ',' + (ManagedString)x + ',' + (ManagedString)y + ',' + (ManagedString)z;
+      ManagedString message = (ManagedString)heading + ',' + (ManagedString)x + ',' + (ManagedString)y + ',' + (ManagedString)z + ',';
       serial.send(message);
       uBit.sleep(500);
     }