adafruit/Adafruit_INA219 — pull request #5 by uChip (2013-10-09 15:01:53+00:00)
Title: Added commands for averaging

My very first pull request. Go easy on me. ;-)

This change adds four new command calls that allow switching voltage and current measurements between single-sample and 128-sample averaging.

+ void setAmpInstant(void); // returns to single sampling
+ void setAmpAverage(void); // changes config reg to 128-sample averaging
+ void setVoltInstant(void); // returns to single sampling
+ void setVoltAverage(void); // changes config reg to 128-sample averaging

I've tested these with my local project and found them to work correctly.

I also couldn't resist tweaking the README just a bit to make it more descriptive.

Thanks,
Chip