Skip to content

Commit

Permalink
Merge pull request #22 from adafruit/stemma_i2c
Browse files Browse the repository at this point in the history
Added commented out board.STEMMA_I2C with explanation
  • Loading branch information
evaherrada authored Nov 28, 2022
2 parents bce3cd6 + 976175d commit 817801d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion examples/lc709203f_simpletest.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
4 changes: 3 additions & 1 deletion examples/lc709203f_thermistortest.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 817801d

Please sign in to comment.