added while loop

pull/78/head
alanbjohnston 5 years ago committed by GitHub
parent 0ea71118cd
commit 33cffd9fc4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -26,6 +26,7 @@ if __name__ == "__main__":
addresses = [0x40, 0x41, 0x44, 0x45] #INA219 addresses on the bus
# print("buses: ", buses, " addr: ", addresses)
while (True):
for x in buses:
try:
i2c_bus = I2C(x) # Device is /dev/i2c-x
@ -64,6 +65,6 @@ if __name__ == "__main__":
print("{:6.3f} ".format(0), "{:6.3f} ".format(0), "{:6.3f} ".format(0), "{:6.3f} ".format(0), "{:6.3f} ".format(0), "{:6.3f} ".format(0), "{:6.3f} ".format(0), "{:6.3f} ".format(0), end = '')
# pass
print(" ")
inp = input("Next?")
inp = input()
print(inp)

Loading…
Cancel
Save

Powered by TurnKey Linux.