send microbit compass and accelerometer data
Fork of compass_data_sender by
Revision 4:b8aa76f28112, committed 2017-02-14
- Comitter:
- kinga
- Date:
- Tue Feb 14 11:00:47 2017 +0000
- Parent:
- 3:92910c8d63e4
- Child:
- 5:c443160b7715
- Commit message:
- refactor: added comma to getCompassHeading function
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Tue Feb 14 10:56:01 2017 +0000 +++ b/main.cpp Tue Feb 14 11:00:47 2017 +0000 @@ -10,7 +10,7 @@ ManagedString getCompassHeading() { int heading = compass.heading(); - return (ManagedString)heading; + return (ManagedString)heading + ','; } ManagedString getAccelerometerVectors() @@ -23,7 +23,7 @@ ManagedString getMessage() { - return getCompassHeading() + ',' + getAccelerometerVectors(); + return getCompassHeading() + getAccelerometerVectors(); } int main()