max17048

Minimal MicroPython driver for the MAX17048 LiPo fuel gauge (I2C 0x36).

Attributes

Classes

MAX17048

The fuel gauge on an injected I2C bus.

Module Contents

max17048.ADDR = 54
class max17048.MAX17048(i2c, addr=ADDR)

The fuel gauge on an injected I2C bus.

i2c
addr = 54
property voltage

Cell voltage in volts (78.125 uV per LSB).

property percent

State of charge in percent (1/256 % per LSB).

property charge_rate

Charge (+) / discharge (-) rate in percent per hour.

property version

Chip version register.