electronutlabs_lis2dh12
¶
Circuitpython library for LIS2DH12 3-axis low power accelerometer.
- Author(s): Tavish Naruka <tavish@electronut.in>
Implementation Notes¶
Hardware:
Software and Dependencies:
- Adafruit CircuitPython firmware for the supported boards: https://github.com/adafruit/circuitpython/releases
# * Adafruit’s Bus Device library: https://github.com/adafruit/Adafruit_CircuitPython_BusDevice
-
electronutlabs_lis2dh12.
AccelerationTuple
¶ alias of
electronutlabs_lis2dh12.acceleration
-
class
electronutlabs_lis2dh12.
LIS2DH12
¶ Driver base for the LIS2DH12 accelerometer.
-
acceleration
¶ The x, y, z acceleration values returned in a 3-tuple and are in m / s ^ 2.
-
data_rate
¶ The data rate of the accelerometer. Can be DATA_RATE_400_HZ, DATA_RATE_200_HZ, DATA_RATE_100_HZ, DATA_RATE_50_HZ, DATA_RATE_25_HZ, DATA_RATE_10_HZ, DATA_RATE_1_HZ, DATA_RATE_POWERDOWN, DATA_RATE_LOWPOWER_1K6HZ, or DATA_RATE_LOWPOWER_5KHZ.
-
range
¶ The range of the accelerometer. Can be RANGE_2_G, RANGE_4_G, RANGE_8_G, or RANGE_16_G.
-
-
class
electronutlabs_lis2dh12.
LIS2DH12_I2C
(i2c, *, address=24)¶ Driver is LIS2DH12 using I2C.