From c5711f80c27f2372377a8a82a63b7e35ccff7133 Mon Sep 17 00:00:00 2001
From: su530201 <olivier.kaufmann@umons.ac.be>
Date: Fri, 22 Sep 2023 17:00:05 +0200
Subject: [PATCH] Modifies the way a controller is used by defining several
 connections and adding an io to components

---
 ohmpi/hardware_components/raspberry_pi.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ohmpi/hardware_components/raspberry_pi.py b/ohmpi/hardware_components/raspberry_pi.py
index bf7eaa8e..4082951e 100644
--- a/ohmpi/hardware_components/raspberry_pi.py
+++ b/ohmpi/hardware_components/raspberry_pi.py
@@ -23,7 +23,7 @@ class Ctl(CtlAbstract):
         super().__init__(**kwargs)
         self.connections = dict()
         # I2C
-        self.connections['i2c'] = I2C(board.SCL, board.SDA)  # noqa
+        self.connections['i2c'] = busio.I2C(board.SCL, board.SDA)  # noqa
         # Extended I2C
         self.connections['i2c_ext'] = ExtendedI2C(4)  # 4 is defined
         # modbus
-- 
GitLab