Test program for FXOS8700CQ. Minimum functionality has been implemented, so far.

Dependencies:   FXOS8700CQ mbed vt100

Files at this revision

API Documentation at this revision

Comitter:
Rhyme
Date:
Mon Apr 24 06:53:17 2017 +0000
Parent:
0:6a51e9fa41a0
Commit message:
program title, board name, compile date print added.; Now CSV compatible output

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
mbed.bld Show annotated file Show diff for this revision Revisions of this file
diff -r 6a51e9fa41a0 -r 4bb4d99d4be5 main.cpp
--- a/main.cpp	Fri Dec 25 05:43:12 2015 +0000
+++ b/main.cpp	Mon Apr 24 06:53:17 2017 +0000
@@ -23,9 +23,13 @@
     fxos = new FXOS8700CQ(PIN_SDA, PIN_SCL, FXOS8700CQ_I2C_ADDRESS) ;
     fxos->init() ;
     
+    printf("=== test FXOS8700CQ for %s (%s) ===\n", BOARD_NAME, __DATE__) ;
+    printf("ACC_X, ACC_Y, ACC_Z, MGN_X, MGN_Y, MGN_Z\n") ;
+    
     while(1) {
         fxos->readAccMgnData(accData, mgnData) ;
-        printf("ACC X[%d], Y[%d], Z[%d],  MGN X[%d], Y[%d], Z[%d]\n",
+//        printf("ACC X[%d], Y[%d], Z[%d],  MGN X[%d], Y[%d], Z[%d]\n",
+        printf("%6d, %6d, %6d, %6d, %6d, %6d\n",
             accData[0], accData[1], accData[2],
             mgnData[0], mgnData[1], mgnData[2]) ;
         wait(0.2) ;
diff -r 6a51e9fa41a0 -r 4bb4d99d4be5 mbed.bld
--- a/mbed.bld	Fri Dec 25 05:43:12 2015 +0000
+++ b/mbed.bld	Mon Apr 24 06:53:17 2017 +0000
@@ -1,1 +1,1 @@
-http://mbed.org/users/mbed_official/code/mbed/builds/4336505e4b1c
\ No newline at end of file
+https://mbed.org/users/mbed_official/code/mbed/builds/97feb9bacc10
\ No newline at end of file