adafruit / Adafruit_INA219

INA219 Current Sensor
Other
204 stars 145 forks source link

Added getPower and user defined calibration #12

Closed flav1972 closed 6 years ago

flav1972 commented 8 years ago

Added user defined calibration: setCalibration_Def(R_SHUNT, V_SHUNT_MAX, V_BUS_MAX, I_MAX_EXPECTED) that can be used if another shunt resistance is used. An example is added.

Also merged in this pull the power fonctions from skyminer.

And finally replaced the uint32_t dividers for LSB by float multipliers.

This should correct the two opened issues (#3 and #9).

Added also averaging functions from uChip.