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