lis2hh
– accelerometer device driver¶
LIS2HH Driver - i2c Accelerometer
This module provides high-level functions to access the basic accelerometer features, and low-level functions to allow access to the full register set for advanced usage.
Many advanced features are available - see datasheet
-
class
lis2hh.
LIS2HH
(addr=30, int1_pin=machine.Pin)[source]¶ Device driver for LIS2HH accelerometer, controlled via i2c bus.
-
enable_int1
(threshold=20, duration=5, cb=None)[source]¶ Enable inertial interrupt on all axes. Threshold is upper byte of 16-bit value, 0 disables.
-