Skip to content

Commit

Permalink
Merge pull request #15 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 22, 2022
2 parents ec01c71 + a869c21 commit 293390e
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions examples/lsm303_accel_fast.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import adafruit_lsm303_accel

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

while True:
Expand Down
1 change: 1 addition & 0 deletions examples/lsm303_accel_inclinometer.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@


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


Expand Down
1 change: 1 addition & 0 deletions examples/lsm303_accel_simpletest.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import adafruit_lsm303_accel

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

while True:
Expand Down
1 change: 1 addition & 0 deletions examples/lsm303_accel_tap_detection.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import adafruit_lsm303_accel

i2c = board.I2C() # uses board.SCL and board.SDA
# i2c = board.STEMMA_I2C() # For using the built-in STEMMA QT connector on a microcontroller
accel = adafruit_lsm303_accel.LSM303_Accel(i2c)
accel.range = adafruit_lsm303_accel.Range.RANGE_8G
accel.set_tap(1, 30)
Expand Down

0 comments on commit 293390e

Please sign in to comment.