API Reference
adafruit_ina228
CircuitPython driver for the INA228 I2C 85V, 20-bit High or Low Side Power Monitor
Author(s): Liz Clark
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_ina228.AlertType
Alert type constants for INA2XX
- class adafruit_ina228.AveragingCount
Averaging count constants for INA2XX
- class adafruit_ina228.ConversionTime
Conversion time constants for INA2XX
- class adafruit_ina228.INA228(i2c_bus: busio.I2C, address: int = 0x40, skip_reset: bool = False)
Driver for the INA228 power and current sensor
- property alert_flags: dict
All diagnostic and alert flags
Returns a dictionary with the status of each flag: - ‘ENERGYOF’: bool - Energy overflow - ‘CHARGEOF’: bool - Charge overflow - ‘MATHOF’: bool - Math overflow - ‘TMPOL’: bool - Temperature overlimit - ‘SHNTOL’: bool - Shunt voltage overlimit - ‘SHNTUL’: bool - Shunt voltage underlimit - ‘BUSOL’: bool - Bus voltage overlimit - ‘BUSUL’: bool - Bus voltage underlimit - ‘POL’: bool - Power overlimit - ‘CNVRF’: bool - Conversion ready - ‘MEMSTAT’: bool - ADC conversion status
- class adafruit_ina228.INA2XX(i2c_bus: busio.I2C, address: int = _INA2XX_DEFAULT_ADDR, skip_reset: bool = False)
Base driver for INA2XX series power and current sensors.
- Parameters:
- class adafruit_ina228.Mode
Operating mode constants for INA2XX