Skip to content

Added is_conversion_ready() function to check if a new reading is available

Compare
Choose a tag to compare
@chrisb2 chrisb2 released this 19 Dec 02:06
· 7 commits to master since this release

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.