Hello world for Kionix KX123 accelerometer sensor. This example application uses kionix-kx123-driver -library to communicate with sensor via i2c-bus. Acceleration values are read for 3 axis and maximum and minimum values for X-axis is printed out when new max/min is reached. Code includes re-connection logic to ease up HW connection debugging.

Dependencies:   RegisterWriter kionix-kx123-driver

Files at this revision

API Documentation at this revision

Comitter:
MikkoZ
Date:
Thu Oct 06 10:33:43 2016 +0000
Parent:
1:3ba9c0a0fd01
Commit message:
Updated libraries

Changed in this revision

RegisterWriter.lib Show annotated file Show diff for this revision Revisions of this file
kionix-kx123-driver.lib Show annotated file Show diff for this revision Revisions of this file
diff -r 3ba9c0a0fd01 -r 7fe25750b23d RegisterWriter.lib
--- a/RegisterWriter.lib	Fri Sep 30 11:54:46 2016 +0000
+++ b/RegisterWriter.lib	Thu Oct 06 10:33:43 2016 +0000
@@ -1,1 +1,1 @@
-https://developer.mbed.org/teams/Rohm/code/RegisterWriter/#dea50f607a45
+https://developer.mbed.org/teams/Rohm/code/RegisterWriter/#bc2446aabbfe
diff -r 3ba9c0a0fd01 -r 7fe25750b23d kionix-kx123-driver.lib
--- a/kionix-kx123-driver.lib	Fri Sep 30 11:54:46 2016 +0000
+++ b/kionix-kx123-driver.lib	Thu Oct 06 10:33:43 2016 +0000
@@ -1,1 +1,1 @@
-https://developer.mbed.org/teams/Rohm/code/kionix-kx123-driver/#f328083fb80b
+https://developer.mbed.org/teams/Rohm/code/kionix-kx123-driver/#62891556d47b