Skip to content

Commit 6cc72bd

Browse files
authored
Merge pull request #23 from adafruit/stemma_i2c
Added commented out board.STEMMA_I2C with explanation
2 parents f5cf3ef + bae034c commit 6cc72bd

File tree

5 files changed

+5
-0
lines changed

5 files changed

+5
-0
lines changed

examples/lis3mdl_compass.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
import adafruit_lis3mdl
99

1010
i2c = board.I2C() # uses board.SCL and board.SDA
11+
# i2c = board.STEMMA_I2C() # For using the built-in STEMMA QT connector on a microcontroller
1112
sensor = adafruit_lis3mdl.LIS3MDL(i2c)
1213

1314

examples/lis3mdl_data_rate_test.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
from adafruit_lis3mdl import LIS3MDL, Rate, PerformanceMode
1010

1111
i2c = board.I2C() # uses board.SCL and board.SDA
12+
# i2c = board.STEMMA_I2C() # For using the built-in STEMMA QT connector on a microcontroller
1213
sensor = LIS3MDL(i2c)
1314

1415
current_rate = Rate.RATE_155_HZ

examples/lis3mdl_lsm6ds_test.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
from adafruit_lis3mdl import LIS3MDL
2121

2222
i2c = board.I2C() # uses board.SCL and board.SDA
23+
# i2c = board.STEMMA_I2C() # For using the built-in STEMMA QT connector on a microcontroller
2324
accel_gyro = LSM6DS(i2c)
2425
mag = LIS3MDL(i2c)
2526

examples/lis3mdl_range_test.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
from adafruit_lis3mdl import LIS3MDL, Range
99

1010
i2c = board.I2C() # uses board.SCL and board.SDA
11+
# i2c = board.STEMMA_I2C() # For using the built-in STEMMA QT connector on a microcontroller
1112
sensor = LIS3MDL(i2c)
1213

1314
while True:

examples/lis3mdl_simpletest.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
import adafruit_lis3mdl
99

1010
i2c = board.I2C() # uses board.SCL and board.SDA
11+
# i2c = board.STEMMA_I2C() # For using the built-in STEMMA QT connector on a microcontroller
1112
sensor = adafruit_lis3mdl.LIS3MDL(i2c)
1213

1314
while True:

0 commit comments

Comments
 (0)