Update voltcurrent.py

pull/126/head
alanbjohnston 5 years ago committed by GitHub
parent 43447b7751
commit 5142c44931
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -13,6 +13,7 @@ if __name__ == "__main__":
buses = [1, 3] # default I2C buses buses = [1, 3] # default I2C buses
config = False config = False
one = two = three = four = five = six = seven = eight = 0
if (len(sys.argv)) > 1: if (len(sys.argv)) > 1:
# print("There are arguments!", file=sys.stderr) # print("There are arguments!", file=sys.stderr)
@ -72,7 +73,7 @@ if __name__ == "__main__":
ina219_one.bus_adc_resolution = ADCResolution.ADCRES_12BIT_32S # 1S ina219_one.bus_adc_resolution = ADCResolution.ADCRES_12BIT_32S # 1S
ina219_one.shunt_adc_resolution = ADCResolution.ADCRES_12BIT_32S # 1S ina219_one.shunt_adc_resolution = ADCResolution.ADCRES_12BIT_32S # 1S
ina219_one.bus_voltage_range = BusVoltageRange.RANGE_16V ina219_one.bus_voltage_range = BusVoltageRange.RANGE_16V
oneF = 1 one = 1
except: except:
print("Python Error 3", file=sys.stderr, flush=True) print("Python Error 3", file=sys.stderr, flush=True)
try: try:

Loading…
Cancel
Save

Powered by TurnKey Linux.