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 88import adafruit_lsm303dlh_mag
99
1010i2c = board .I2C () # uses board.SCL and board.SDA
11+ # i2c = board.STEMMA_I2C() # For using the built-in STEMMA QT connector on a microcontroller
1112sensor = adafruit_lsm303dlh_mag .LSM303DLH_Mag (i2c )
1213
1314
Original file line number Diff line number Diff line change 77import adafruit_lsm303dlh_mag
88
99i2c = board .I2C () # uses board.SCL and board.SDA
10+ # i2c = board.STEMMA_I2C() # For using the built-in STEMMA QT connector on a microcontroller
1011sensor = adafruit_lsm303dlh_mag .LSM303DLH_Mag (i2c )
1112
1213while True :
Original file line number Diff line number Diff line change 88import adafruit_lsm303dlh_mag
99
1010i2c = board .I2C () # uses board.SCL and board.SDA
11+ # i2c = board.STEMMA_I2C() # For using the built-in STEMMA QT connector on a microcontroller
1112sensor = adafruit_lsm303dlh_mag .LSM303DLH_Mag (i2c )
1213
1314while True :
You can’t perform that action at this time.
0 commit comments