File tree 3 files changed +6
-3
lines changed
3 files changed +6
-3
lines changed Original file line number Diff line number Diff line change 6
6
import adafruit_sht31d
7
7
8
8
# Create sensor object, communicating over the board's default I2C bus
9
- i2c = board .I2C ()
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_sht31d .SHT31D (i2c )
11
12
12
13
print ("\033 [1mSensor\033 [0m = SHT31-D" )
Original file line number Diff line number Diff line change 5
5
import adafruit_sht31d
6
6
7
7
# Create sensor object, communicating over the board's default I2C bus
8
- i2c = board .I2C ()
8
+ i2c = board .I2C () # uses board.SCL and board.SDA
9
+ # i2c = board.STEMMA_I2C() # For using the built-in STEMMA QT connector on a microcontroller
9
10
sensor = adafruit_sht31d .SHT31D (i2c )
10
11
11
12
print ("\033 [1mSensor\033 [0m = SHT31-D" )
Original file line number Diff line number Diff line change 6
6
import adafruit_sht31d
7
7
8
8
# Create sensor object, communicating over the board's default I2C bus
9
- i2c = board .I2C ()
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_sht31d .SHT31D (i2c )
11
12
12
13
loopcount = 0
You can’t perform that action at this time.
0 commit comments