Closed RissanenGit closed 6 years ago
Out of the other languages, the only one i have used is Python. I could try to whip up an example for that.
I assume that the Python module i can use for the example is automatically created from the C++ wrapper?
Edit: I have been looking into the SWIG, and it's syntax. I am currently limited on time, so i won't have the time to make the example for Python after all. I will look into making it in the future, but i won't be making it in time for this pull request.
Nice addition Samuli - merged.
Note, I added the other language examples and an stl::vector method for getting the acceleration.
The driver implements support for Kionix's KX122 accelerometer. The KX122 is a tri-axis ±2g, ±4g or ±8g accelerometer with integrated 2048 byte buffer, orientation, tap/double tap, activity detecting, and Free fall algorithms.
The current version of the driver implements functionality for the accelerometer and it's configuration, buffer's functionality and it's configuration and interrupt functionalities.
The driver was tested on Raspberry Pi 3 model b
Signed-off-by: Samuli Rissanen samuli.rissanen@hotmail.com