Skip to content

Commit 36eec74

Browse files
committed
Added commented out board.STEMMA_I2C with explanation
1 parent 1919916 commit 36eec74

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

examples/lc709203f_simpletest.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@
99
print("LC709203F simple test")
1010
print("Make sure LiPoly battery is plugged into the board!")
1111

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)
1315

1416
print("IC version:", hex(sensor.ic_version))
1517
while True:

examples/lc709203f_thermistortest.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@
99
print("LC709203F thermistor test")
1010
print("Make sure a thermistor is connected to the board!")
1111

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)
1315

1416
# check your NTC thermistor datasheet for the appropriate B-Constant
1517
sensor.thermistor_bconstant = 3950

0 commit comments

Comments
 (0)