pull/55/head
alanbjohnston 5 years ago committed by GitHub
parent a2a99f26e9
commit f95a2e6d58
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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_1S // 32S
ina219.shunt_adc_resolution = ADCResolution.ADCRES_12BIT_1S // 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.