send microbit compass and accelerometer data
Fork of compass_data_sender by
Revision 2:89097482d7f1, committed 2017-02-09
- 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); }