From f6d31e9a30adc351cd3410af1d19e657e3575c28 Mon Sep 17 00:00:00 2001 From: alanbjohnston Date: Sun, 16 Aug 2020 22:28:31 -0400 Subject: [PATCH] Update voltage.py --- python/voltage.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python/voltage.py b/python/voltage.py index e5270884..bb213882 100644 --- a/python/voltage.py +++ b/python/voltage.py @@ -20,11 +20,11 @@ if __name__ == "__main__": else: bus = 1 address = 0x40 - + # Create library object using Extended Bus I2C port i2c_bus = I2C(bus) # 1 Device is /dev/i2c-1 - ina219 = INA219(i2c_bus, 0x45) + ina219 = INA219(i2c_bus, address) # print("ina219 test")