adafruit_max1704x
MAX17048 or MAX17049 battery fuel gauge library
Author(s): ladyada
Implementation Notes
Hardware:
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_max1704x.MAX17048(i2c_bus: I2C, address: int = 54)
Driver for the MAX1704X battery fuel gauge. :param ~busio.I2C i2c_bus: The I2C bus the MAX1704X is connected to. :param address: The I2C device address. Defaults to
0x36
- property activity_threshold: float
The absolute change in battery voltage that will trigger hibernation
- hibernate() None
Setup thresholds for hibernation to go into hibernation mode immediately.
See datasheet: HIBRT Register (0x0A) To disable hibernate mode, set HIBRT = 0x0000. To always use hibernate mode, set HIBRT = 0xFFFF. Can check status with
hibernating
- property hibernation_threshold: float
The absolute-value percent-per-hour change in charge rate that will trigger hibernation