We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e7da74f commit 764411dCopy full SHA for 764411d
examples/lsm6ds_pedometer.py
@@ -12,7 +12,13 @@
12
from adafruit_lsm6ds import AccelRange, Rate
13
14
# pylint:disable=no-member
15
-from adafruit_lsm6ds.lsm6ds33 import LSM6DS33
+# Import the correct class for the sensor that you have.
16
+# Change the import as needed. Not all are listed here.
17
+# Note that the LSM6DS3TRC, which is used on the Adafruit Feather Sense,
18
+# uses a different I2C register to enable the pedometer,
19
+# so the device classes are not interchangeable.
20
+from adafruit_lsm6ds.lsm6ds3trc import LSM6DS3TRC as LSM
21
+# from adafruit_lsm6ds.lsm6ds33 import LSM6DS33 as LSM
22
23
i2c = board.I2C() # uses board.SCL and board.SDA
24
# i2c = board.STEMMA_I2C() # For using the built-in STEMMA QT connector on a microcontroller
0 commit comments