This Python library supports the INA219 voltage, current and power monitor from Texas Instruments with a Raspberry Pi using the I2C bus. The intent of the library is to make it easy to use the quite complex functionality of this sensor.
PyPi documentation fix.
The is_conversion_ready() function checks if the INA219 has updated the registers with a new reading, this can be used to guarantee that a measurement represents a new reading, not the previous reading. The method is checking bit CNVR in the voltage register according to INA219 datasheet.
Allows a main module module to configure root logger using basicConfig() if required.
A new parameter 'busnum' has been added to the INA219 class contructor this is the I2C bus number for the device platform, defaults to auto detects 0 or 1 for Raspberry Pi or Beaglebone Black (optional).