From 36eec74d08ba970577c797a18a01225a04f6f3b4 Mon Sep 17 00:00:00 2001 From: dherrada Date: Fri, 18 Nov 2022 13:05:25 -0500 Subject: [PATCH] Added commented out board.STEMMA_I2C with explanation --- examples/lc709203f_simpletest.py | 4 +++- examples/lc709203f_thermistortest.py | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) 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