Skip to content

Commit 82ac7e0

Browse files
authored
Merge pull request #18 from adafruit/stemma_i2c
Added commented out board.STEMMA_I2C with explanation
2 parents 23e2ffa + a354580 commit 82ac7e0

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

examples/lsm303dlh_mag_compass.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
import adafruit_lsm303dlh_mag
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_lsm303dlh_mag.LSM303DLH_Mag(i2c)
1213

1314

examples/lsm303dlh_mag_fast.py

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

99
i2c = board.I2C() # uses board.SCL and board.SDA
10+
# i2c = board.STEMMA_I2C() # For using the built-in STEMMA QT connector on a microcontroller
1011
sensor = adafruit_lsm303dlh_mag.LSM303DLH_Mag(i2c)
1112

1213
while True:

examples/lsm303dlh_mag_simpletest.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
import adafruit_lsm303dlh_mag
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_lsm303dlh_mag.LSM303DLH_Mag(i2c)
1213

1314
while True:

0 commit comments

Comments
 (0)