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.
Setup of root logger using basicConfig() is now conditional on non-existence of any other handlers. Named module level logger is created and used instead of calls to root logger in ina219.py. These changes should allow it to play nicer with logging in modules where it is imported at.
Addition was also made to .gitignore for PyCharm (.idea) files.
Setup of root logger using
basicConfig()
is now conditional on non-existence of any other handlers. Named module level logger is created and used instead of calls to root logger in ina219.py. These changes should allow it to play nicer with logging in modules where it is imported at.Addition was also made to .gitignore for PyCharm (.idea) files.
It was tested with Python 2.7 and 3.7