From 017607379e7c64e8f2c4e3b4934f0ddc20955561 Mon Sep 17 00:00:00 2001 From: alanbjohnston Date: Tue, 18 Aug 2020 09:47:51 -0400 Subject: [PATCH] changed ADC from 32S to 1S --- python/current.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python/current.py b/python/current.py index 634b18bd..0a579fad 100644 --- a/python/current.py +++ b/python/current.py @@ -28,8 +28,8 @@ if __name__ == "__main__": ina219 = INA219(i2c_bus, address) # optional : change configuration to use 32 samples averaging for both bus voltage and shunt voltage - ina219.bus_adc_resolution = ADCResolution.ADCRES_12BIT_32S - ina219.shunt_adc_resolution = ADCResolution.ADCRES_12BIT_32S + ina219.bus_adc_resolution = ADCResolution.ADCRES_12BIT_1S // 32S + ina219.shunt_adc_resolution = ADCResolution.ADCRES_12BIT_1S // 32S # optional : change voltage range to 16V ina219.bus_voltage_range = BusVoltageRange.RANGE_16V