changed ADC from 32S to 1S

pull/55/head
alanbjohnston 6 years ago committed by GitHub
parent 017607379e
commit 6ca0767374
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -29,8 +29,8 @@ if __name__ == "__main__":
# print("ina219 test")
# 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

Loading…
Cancel
Save

Powered by TurnKey Linux.