From 6a9c956d1dff496d1d0fd3c34bab02a1f464315f Mon Sep 17 00:00:00 2001 From: alanbjohnston Date: Tue, 18 Aug 2020 14:55:08 -0400 Subject: [PATCH] Update voltcurrent.py --- python/voltcurrent.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/python/voltcurrent.py b/python/voltcurrent.py index 19e491df..b8e6d6db 100644 --- a/python/voltcurrent.py +++ b/python/voltcurrent.py @@ -32,9 +32,9 @@ if __name__ == "__main__": # try: if True: # Create library object using Extended Bus I2C port - print("bus: ", buses[x], " addr: ", addresses[y]) - i2c_bus = I2C(buses[x]) # 1 Device is /dev/i2c-1 - ina219 = INA219(i2c_bus, addresses[y]) + print("bus: ", x, " addr: ", y) + i2c_bus = I2C(x) # 1 Device is /dev/i2c-1 + ina219 = INA219(i2c_bus, y) # print("ina219 test") if config: