File tree Expand file tree Collapse file tree 3 files changed +3
-0
lines changed Expand file tree Collapse file tree 3 files changed +3
-0
lines changed Original file line number Diff line number Diff line change 8
8
import adafruit_lsm303dlh_mag
9
9
10
10
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
11
12
sensor = adafruit_lsm303dlh_mag .LSM303DLH_Mag (i2c )
12
13
13
14
Original file line number Diff line number Diff line change 7
7
import adafruit_lsm303dlh_mag
8
8
9
9
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
10
11
sensor = adafruit_lsm303dlh_mag .LSM303DLH_Mag (i2c )
11
12
12
13
while True :
Original file line number Diff line number Diff line change 8
8
import adafruit_lsm303dlh_mag
9
9
10
10
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
11
12
sensor = adafruit_lsm303dlh_mag .LSM303DLH_Mag (i2c )
12
13
13
14
while True :
You can’t perform that action at this time.
0 commit comments