Skip to content

Commit

Permalink
Merge pull request #7 from adafruit/stemma_i2c
Browse files Browse the repository at this point in the history
Added commented out board.STEMMA_I2C with explanation
  • Loading branch information
evaherrada committed Nov 28, 2022
2 parents 92590cf + 750ff82 commit 0945b93
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions examples/lis331_high_pass_filter.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import adafruit_lis331

i2c = board.I2C() # uses board.SCL and board.SDA
# i2c = board.STEMMA_I2C() # For using the built-in STEMMA QT connector on a microcontroller
# un-comment the sensor you are using
# lis = H3LIS331(i2c)
lis = adafruit_lis331.LIS331HH(i2c)
Expand Down
1 change: 1 addition & 0 deletions examples/lis331_low_pass_filter.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
from adafruit_lis331 import LIS331HH, Rate, Frequency

i2c = board.I2C() # uses board.SCL and board.SDA
# i2c = board.STEMMA_I2C() # For using the built-in STEMMA QT connector on a microcontroller

# un-comment the sensor you are using
# lis = H3LIS331(i2c)
Expand Down
1 change: 1 addition & 0 deletions examples/lis331_simpletest.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import adafruit_lis331

i2c = board.I2C() # uses board.SCL and board.SDA
# i2c = board.STEMMA_I2C() # For using the built-in STEMMA QT connector on a microcontroller
lis = adafruit_lis331.LIS331HH(i2c)

while True:
Expand Down

0 comments on commit 0945b93

Please sign in to comment.