adafruit_lc709203f
¶
Library for I2C LC709203F battery status and fuel gauge
Author(s): ladyada
Implementation Notes¶
Hardware:
Adafruit LC709203F LiPoly / LiIon Fuel Gauge and Battery Monitor (Product ID: 4712)
Software and Dependencies:
Adafruit CircuitPython firmware for the supported boards: https://circuitpython.org/downloads
Adafruit’s Bus Device library: https://github.com/adafruit/Adafruit_CircuitPython_BusDevice
Adafruit’s Register library: https://github.com/adafruit/Adafruit_CircuitPython_Register
- class adafruit_lc709203f.LC709203F(i2c_bus, address=11)¶
Interface library for LC709203F battery monitoring and fuel gauge sensors
- Parameters
- property battery_profile¶
Returns current battery profile (0 or 1)
- property cell_percent¶
Returns percentage of cell capacity
- property cell_temperature¶
Returns the temperature of the cell
- property cell_voltage¶
Returns floating point voltage
- property ic_version¶
Returns read-only chip version
- init_RSOC()¶
Initialize the state of charge calculator
- property pack_size¶
Returns current battery pack size
- property power_mode¶
Returns current power mode (operating or sleeping)
- property thermistor_bconstant¶
Returns the thermistor B-constant
- property thermistor_enable¶
Returns the current temperature source
- class adafruit_lc709203f.PackSize¶
Options for
pack_size
- class adafruit_lc709203f.PowerMode¶
Options for
power_mode