adafruit_lc709203f

Library for I2C LC709203F battery status and fuel gauge

  • Author(s): ladyada

Implementation Notes

Hardware:

Software and Dependencies:

class adafruit_lc709203f.LC709203F(i2c_bus: I2C, address: int = 11)

Interface library for LC709203F battery monitoring and fuel gauge sensors

Parameters:
  • i2c_bus (I2C) – The I2C bus the device is connected to

  • address (int) – The I2C device address. Defaults to 0x0B

property battery_profile: Literal[0, 1]

Returns current battery profile (0 or 1)

property cell_percent: float

Returns percentage of cell capacity

property cell_temperature: float

Returns the temperature of the cell

property cell_voltage: float

Returns floating point voltage

property ic_version: int

Returns read-only chip version

init_RSOC() None

Initialize the state of charge calculator

property low_voltage_alarm: int

Return the current low voltage alarm value in mV 0 indicates disabled

property low_voltage_alarm_percent: int

Return the current low voltage alarm percentage. 0 indicates disabled.

property pack_size: int

Returns current battery pack size

property power_mode: Literal[1, 2]

Returns current power mode (operating or sleeping)

property thermistor_bconstant: int

Returns the thermistor B-constant

property thermistor_enable: bool

Returns the current temperature source

class adafruit_lc709203f.PackSize

Options for pack_size

class adafruit_lc709203f.PowerMode

Options for power_mode