adafruit / Adafruit_CircuitPython_LC709203F

Library for I2C LC709203F battery status and fuel gauge
MIT License
4 stars 10 forks source link

Add thermistor support #13

Closed dgriswo closed 3 years ago

dgriswo commented 3 years ago

Added support for thermistors and setting the cell temperature over i2c.

For the b-constant, the sensor expects an integer with the unit of 1k. (so 3950K is 3950)

For the cell_temperature, the registers hold the Kelvin temperature. I'm converting to and from Celsius. If this is not desired in the library, I can remove the conversion.

ladyada commented 3 years ago

nice! thank you :) i didn't test it, but since there's an example i assume you did!