Update voltage.py

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

@ -40,5 +40,5 @@ if __name__ == "__main__":
# 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))
exception: except:
printf("0 Error\n") printf("0 Error\n")

Loading…
Cancel
Save

Powered by TurnKey Linux.