Skip to content

Commit

Permalink
Merge pull request #23 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 authored Nov 22, 2022
2 parents f5cf3ef + bae034c commit 6cc72bd
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions examples/lis3mdl_compass.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import adafruit_lis3mdl

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_lis3mdl.LIS3MDL(i2c)


Expand Down
1 change: 1 addition & 0 deletions examples/lis3mdl_data_rate_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
from adafruit_lis3mdl import LIS3MDL, Rate, PerformanceMode

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 = LIS3MDL(i2c)

current_rate = Rate.RATE_155_HZ
Expand Down
1 change: 1 addition & 0 deletions examples/lis3mdl_lsm6ds_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
from adafruit_lis3mdl import LIS3MDL

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_gyro = LSM6DS(i2c)
mag = LIS3MDL(i2c)

Expand Down
1 change: 1 addition & 0 deletions examples/lis3mdl_range_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
from adafruit_lis3mdl import LIS3MDL, Range

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 = LIS3MDL(i2c)

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

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_lis3mdl.LIS3MDL(i2c)

while True:
Expand Down

0 comments on commit 6cc72bd

Please sign in to comment.