From bc44069034d2f3c4db248b9b7f8ec4ea2aad85c5 Mon Sep 17 00:00:00 2001 From: alanbjohnston Date: Tue, 18 Aug 2020 15:22:15 -0400 Subject: [PATCH] Update voltcurrent.py --- python/voltcurrent.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python/voltcurrent.py b/python/voltcurrent.py index cd40bf0c..aab35a13 100644 --- a/python/voltcurrent.py +++ b/python/voltcurrent.py @@ -39,8 +39,8 @@ if __name__ == "__main__": if config: print("Configuring") # optional : change configuration to use 32 samples averaging for both bus voltage and shunt voltage - ina219.bus_adc_resolution = ADCResolution.ADCRES_12BIT_1S # 32S - ina219.shunt_adc_resolution = ADCResolution.ADCRES_12BIT_1S # 32S + ina219.bus_adc_resolution = ADCResolution.ADCRES_12BIT_32S # 1S + ina219.shunt_adc_resolution = ADCResolution.ADCRES_12BIT_32S # 1S # optional : change voltage range to 16V ina219.bus_voltage_range = BusVoltageRange.RANGE_16V