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, address=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

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