Skip to content

Commit 9d22307

Browse files
authored
update for travis errors
1 parent 1e70282 commit 9d22307

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

adafruit_ina219.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -477,7 +477,11 @@ def set_calibration_16V_400mA(self): # pylint: disable=invalid-name
477477
self.shunt_adc_resolution = ADCResolution.ADCRES_12BIT_1S
478478
self.mode = Mode.SANDBVOLT_CONTINUOUS
479479

480-
def set_calibration_16V_5A(self):
480+
def set_calibration_16V_5A(self): # pylint: disable=invalid-name
481+
"""Configures to INA219 to be able to measure up to 16V and 5000mA of current. Counter
482+
overflow occurs at 8.0A.
483+
484+
.. note:: These calculations assume a 0.02 ohm shunt resistor is present"""
481485
# Calibration which uses the highest precision for
482486
# current measurement (0.1mA), at the expense of
483487
# only supporting 16V at 5000mA max.

0 commit comments

Comments
 (0)