Test program for FXAS21002
Dependencies: FXAS21002 mbed vt100
Revision 4:db440780b6d5, committed 2017-05-17
- Comitter:
- Rhyme
- Date:
- Wed May 17 07:17:18 2017 +0000
- Parent:
- 3:e83d09785222
- Commit message:
- format changed to be compatible with CSV
Changed in this revision
test_FXAS21002.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r e83d09785222 -r db440780b6d5 test_FXAS21002.cpp --- a/test_FXAS21002.cpp Mon Apr 24 02:50:58 2017 +0000 +++ b/test_FXAS21002.cpp Wed May 17 07:17:18 2017 +0000 @@ -17,13 +17,13 @@ fxas->activate(true) ; printf("=== test FXAS21002 for %s (%s) ===\n", BOARD_NAME, __DATE__) ; + printf(" X, Y, Z\n") ; while(1) { data[0] = fxas->getX() ; data[1] = fxas->getY() ; data[2] = fxas->getZ() ; - printf("X[%6d], Y[%6d], Z[%6d]\n", - data[0], data[1], data[2]) ; + printf("%6d, %6d, %6d\n", data[0], data[1], data[2]) ; wait(0.2) ; } } \ No newline at end of file