diff --git a/examples/lc709203f_simpletest.py b/examples/lc709203f_simpletest.py index 09a0b53..899e05a 100644 --- a/examples/lc709203f_simpletest.py +++ b/examples/lc709203f_simpletest.py @@ -9,7 +9,9 @@ print("LC709203F simple test") print("Make sure LiPoly battery is plugged into the board!") -sensor = LC709203F(board.I2C()) +i2c = board.I2C() # uses board.SCL and board.SDA +# i2c = board.STEMMA_I2C() # For using the built-in STEMMA QT connector on a microcontroller +sensor = LC709203F(i2c) print("IC version:", hex(sensor.ic_version)) while True: diff --git a/examples/lc709203f_thermistortest.py b/examples/lc709203f_thermistortest.py index ea8ffd4..47ea3dc 100644 --- a/examples/lc709203f_thermistortest.py +++ b/examples/lc709203f_thermistortest.py @@ -9,7 +9,9 @@ print("LC709203F thermistor test") print("Make sure a thermistor is connected to the board!") -sensor = LC709203F(board.I2C()) +i2c = board.I2C() # uses board.SCL and board.SDA +# i2c = board.STEMMA_I2C() # For using the built-in STEMMA QT connector on a microcontroller +sensor = LC709203F(i2c) # check your NTC thermistor datasheet for the appropriate B-Constant sensor.thermistor_bconstant = 3950