Update voltcurrent.py

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

@ -49,7 +49,7 @@ if __name__ == "__main__":
current = ina219.current # current in mA current = ina219.current # current in mA
# INA219 measure bus voltage on the load side. So PSU voltage = bus_voltage + shunt_voltage # INA219 measure bus voltage on the load side. So PSU voltage = bus_voltage + shunt_voltage
# print("{:6.3f}".format(bus_voltage + shunt_voltage)) # print("{:6.3f}".format(bus_voltage + shunt_voltage))
print(bus_voltage, " ", current, " ") print(bus_voltage, " ", current, " ", end = '')
except: except:
# print("0.0 Error) print("0.0 0.0", end = '')
pass # pass

Loading…
Cancel
Save

Powered by TurnKey Linux.