wayland/lis3dh-accelerometer-spi@0.0.1

License: BSD

LIS3DH triaxial accelerometer on an SPI bus. Wraps https://github.com/adafruit/Adafruit_LIS3DH. Datasheet: http://www.st.com/resource/en/application_note/cd00290365.pdf. N.B. this library has not been tested.
NodeDescription
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-motion-detector
Demonstrates how lis3dh can be used as a motion sensor. LED is illuminated if motion is detected. Push button resets motion detector.
example-read-adc
Patch to test read-adc node. Run in debugger.
example-read-raw
Patch to test read-raw node. Run in debugger.
example-test-accelerometer
Test of accelerometer. Run in debugger.
example-test-click-detector
Test of click-detector. Run in debugger.
example-tweak-settings
Demonstrates changing data-rate and range at runtime using tweak nodes. Run in debugger.
get-click
Detect single or double "click" (tap).
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.
read-acceleration
Read acceleration (metre per second squared) in all three axes.
read-adc
Read the auxiliary analog-to-digital converter.
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.
lis3dh-device-spi
Create a lis3dh device on the hardware SPI bus.
To use the nodes in your project you should have the wayland/lis3dh-accelerometer-spi 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.