Skip to content

Commit f1d8065

Browse files
authored
Change sensor initialization to use LSM
1 parent 764411d commit f1d8065

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/lsm6ds_pedometer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323
i2c = board.I2C() # uses board.SCL and board.SDA
2424
# i2c = board.STEMMA_I2C() # For using the built-in STEMMA QT connector on a microcontroller
25-
sensor = LSM6DS33(i2c)
25+
sensor = LSM(i2c)
2626

2727
# enable accelerometer sensor @ 2G and 26 Hz
2828
sensor.accelerometer_range = AccelRange.RANGE_2G

0 commit comments

Comments
 (0)