File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 9
9
print ("LC709203F simple test" )
10
10
print ("Make sure LiPoly battery is plugged into the board!" )
11
11
12
- sensor = LC709203F (board .I2C ())
12
+ i2c = board .I2C () # uses board.SCL and board.SDA
13
+ # i2c = board.STEMMA_I2C() # For using the built-in STEMMA QT connector on a microcontroller
14
+ sensor = LC709203F (i2c )
13
15
14
16
print ("IC version:" , hex (sensor .ic_version ))
15
17
while True :
Original file line number Diff line number Diff line change 9
9
print ("LC709203F thermistor test" )
10
10
print ("Make sure a thermistor is connected to the board!" )
11
11
12
- sensor = LC709203F (board .I2C ())
12
+ i2c = board .I2C () # uses board.SCL and board.SDA
13
+ # i2c = board.STEMMA_I2C() # For using the built-in STEMMA QT connector on a microcontroller
14
+ sensor = LC709203F (i2c )
13
15
14
16
# check your NTC thermistor datasheet for the appropriate B-Constant
15
17
sensor .thermistor_bconstant = 3950
You can’t perform that action at this time.
0 commit comments