Skip to content

Commit d689ca7

Browse files
authored
Merge pull request #59 from adafruit/stemma_i2c
Added commented out board.STEMMA_I2C with explanation
2 parents 6db1b1a + 6fbf166 commit d689ca7

8 files changed

+8
-0
lines changed

examples/lsm6ds_full_test.py

+1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
# from adafruit_lsm6ds.ism330dhcx import ISM330DHCX as LSM6DS
1515

1616
i2c = board.I2C() # uses board.SCL and board.SDA
17+
# i2c = board.STEMMA_I2C() # For using the built-in STEMMA QT connector on a microcontroller
1718
sensor = LSM6DS(i2c)
1819

1920
sensor.accelerometer_range = AccelRange.RANGE_8G

examples/lsm6ds_ism330dhcx_simpletest.py

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
from adafruit_lsm6ds.ism330dhcx import ISM330DHCX
77

88
i2c = board.I2C() # uses board.SCL and board.SDA
9+
# i2c = board.STEMMA_I2C() # For using the built-in STEMMA QT connector on a microcontroller
910
sensor = ISM330DHCX(i2c)
1011

1112
while True:

examples/lsm6ds_lsm6ds33_simpletest.py

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
from adafruit_lsm6ds.lsm6ds33 import LSM6DS33
77

88
i2c = board.I2C() # uses board.SCL and board.SDA
9+
# i2c = board.STEMMA_I2C() # For using the built-in STEMMA QT connector on a microcontroller
910
sensor = LSM6DS33(i2c)
1011

1112
while True:

examples/lsm6ds_lsm6ds3_simpletest.py

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
from adafruit_lsm6ds.lsm6ds3 import LSM6DS3
77

88
i2c = board.I2C() # uses board.SCL and board.SDA
9+
# i2c = board.STEMMA_I2C() # For using the built-in STEMMA QT connector on a microcontroller
910
sensor = LSM6DS3(i2c)
1011

1112
while True:

examples/lsm6ds_lsm6dso32_simpletest.py

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
from adafruit_lsm6ds.lsm6dso32 import LSM6DSO32
77

88
i2c = board.I2C() # uses board.SCL and board.SDA
9+
# i2c = board.STEMMA_I2C() # For using the built-in STEMMA QT connector on a microcontroller
910
sensor = LSM6DSO32(i2c)
1011

1112
while True:

examples/lsm6ds_lsm6dsox_simpletest.py

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
from adafruit_lsm6ds.lsm6dsox import LSM6DSOX
77

88
i2c = board.I2C() # uses board.SCL and board.SDA
9+
# i2c = board.STEMMA_I2C() # For using the built-in STEMMA QT connector on a microcontroller
910
sensor = LSM6DSOX(i2c)
1011

1112
while True:

examples/lsm6ds_pedometer.py

+1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
from adafruit_lsm6ds import Rate, AccelRange
1414

1515
i2c = board.I2C() # uses board.SCL and board.SDA
16+
# i2c = board.STEMMA_I2C() # For using the built-in STEMMA QT connector on a microcontroller
1617
sensor = LSM6DS33(i2c)
1718

1819
# enable accelerometer sensor @ 2G and 26 Hz

examples/lsm6ds_rate_test.py

+1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
# from adafruit_lsm6ds.ism330dhcx import ISM330DHCX as LSM6DS
1313

1414
i2c = board.I2C() # uses board.SCL and board.SDA
15+
# i2c = board.STEMMA_I2C() # For using the built-in STEMMA QT connector on a microcontroller
1516
sensor = LSM6DS(i2c)
1617

1718
while True:

0 commit comments

Comments
 (0)