accelerometer

wayland/lis3dh-accelerometer-spi/accelerometer

Combines lower level nodes to create a simple to use accelerometer.
accelerometer
@/accelerometer
Combines lower level nodes to create a simple to use accelerometer.
CSport
Chip Select
RATEbyte
Data rate. Options: 01h = 1 Hz, 02h = 10 Hz, 03h = 25 Hz, 04h = 50 Hz, 05h= 100 Hz, 06h = 200 Hz, 07h = 400 Hz (default), 00h = powered down, 08h = 1.6 kHz (low power), 09h = 5 kHz (low power).
RANGEbyte
Range. Options: 00h = +/- 2g (default), 01h = +/- 4g, 02h = +/- 8g, 03h = +/- 16g.
accelerometer
X
Y
Z
CS
RATE
RANGE
Znumber
Acceleration (metre per second squared) in z-axis.
Ynumber
Acceleration (metre per second squared) in y-axis.
Xnumber
Acceleration (metre per second squared) in x-axis.
To use the node 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.