wayland/lis3dh-accelerometer@0.0.3

License: BSD

LIS3DH triaxial accelerometer. Wraps https://github.com/adafruit/Adafruit_LIS3DH. Datasheet: http://www.st.com/resource/en/application_note/cd00290365.pdf. This library was tested on a LIS3DHTR.
NodeDescription
example-motion-detector
Demonstrates how lis3dh can be used as a motion sensor. LED is illuminated if motion is detected. Push button resets motion detector.
accelerometer
Combines lower level nodes to create a simple to use accelerometer.
click-detector
Combines low level nodes to create a simple to use click-detector. Detects single or double taps of the sensor.
example-read-raw
Patch to test read-raw node. Run in debugger.
example-read-adc
Patch to test read-adc node. Run in debugger.
example-test-accelerometer
Test of accelerometer. Run in debugger.
example-test-click-detector
Test of click-detector. Run in debugger.
get-data-rate
Get data rate.
get-device-id
Read the ID of the lis3dh device.
get-range
Read the g range for the accelerometer.
lis3dh-device
Create a lis3dh device.
read-adc
Read the auxiliary analog-to-digital converter.
read-acceleration
Read acceleration (metre per second squared) in all three axes.
read-raw
Read X, Y and Z raw values.
set-click
Configure parameters for "click" (tap) detection. See datasheet for explanation of parameters: http://www.st.com/resource/en/application_note/cd00290365.pdf
set-data-rate
Set data rate.
set-range
Set range.
get-click
Detect single or double "click" (tap).
example-tweak-settings
Demonstrates changing data-rate and range at runtime using tweak nodes. Run in debugger.
example-wire1
Test of accelerometer on hardware I²C bus #1 (Wire1). Run in debugger.
To use the nodes in your project you should have the wayland/lis3dh-accelerometer library installed. Use the “File → Add Library” menu item in XOD IDE if you don’t have it yet. See Using libraries for more info.