Check out my github
https://github.com/NickWaterton/mcScriptFor many new programs, including:
All New LIS2DH12 library (for the 120 module and Demo 205 accelerometer)
Example programs for the accelerometer
Updated DoorSensor program for module 120
Updated Python logging program (makes viewing the accelerometer 120 example programs easy).
The new accelerometer library (V1.5) is completely re-written, and fully tested. Programs using the old incomplete library may need updating, as some function names have changed.
All bugs have been fixed* (and there were many).
All features of the accelerometer (except FIFO) have been implemented with easy to configure functions. These include.
- Motion Detection
- Transient Detection
- Orientation Detection 6D and 4D
- FreeFall Detection
- Single and a Double Click Detection (tap)
All interrupts, modes, ranges and pins implemented.
6D, 4D (landscape/portrate) and high pass filter configurations made simple.
Readout of x,y,z pitch and roll in 8,10 and 12 bit resolution.
Sleep mode, data rates from 1 Hz to 1.5kHz
Ultra low power modes (2uA).
Easy read out functions return strings (such as "up" and "down" or "portrate_up" for Orientation detection)
Super easy to configure and use!
Plus much more.
Check it out and let me know what you think.
*This may not be true.