Skip to content

Commit 0945b93

Browse files
authored
Merge pull request #7 from adafruit/stemma_i2c
Added commented out board.STEMMA_I2C with explanation
2 parents 92590cf + 750ff82 commit 0945b93

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

examples/lis331_high_pass_filter.py

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
import adafruit_lis331
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
# un-comment the sensor you are using
1011
# lis = H3LIS331(i2c)
1112
lis = adafruit_lis331.LIS331HH(i2c)

examples/lis331_low_pass_filter.py

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
from adafruit_lis331 import LIS331HH, Rate, Frequency
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

1011
# un-comment the sensor you are using
1112
# lis = H3LIS331(i2c)

examples/lis331_simpletest.py

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
import adafruit_lis331
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
lis = adafruit_lis331.LIS331HH(i2c)
1011

1112
while True:

0 commit comments

Comments
 (0)