|
|
|
@ -46,7 +46,7 @@ if __name__ == "__main__":
|
|
|
|
ina219 = INA219(i2c_bus, y)
|
|
|
|
ina219 = INA219(i2c_bus, y)
|
|
|
|
# print("ina219 test")
|
|
|
|
# print("ina219 test")
|
|
|
|
|
|
|
|
|
|
|
|
print("Configuring")
|
|
|
|
# print("Configuring")
|
|
|
|
# optional : change configuration to use 32 samples averaging for both bus voltage and shunt voltage
|
|
|
|
# optional : change configuration to use 32 samples averaging for both bus voltage and shunt voltage
|
|
|
|
ina219.bus_adc_resolution = ADCResolution.ADCRES_12BIT_32S # 1S
|
|
|
|
ina219.bus_adc_resolution = ADCResolution.ADCRES_12BIT_32S # 1S
|
|
|
|
ina219.shunt_adc_resolution = ADCResolution.ADCRES_12BIT_32S # 1S
|
|
|
|
ina219.shunt_adc_resolution = ADCResolution.ADCRES_12BIT_32S # 1S
|
|
|
|
|