From e300642501c7718beecddd4247654ec50e563914 Mon Sep 17 00:00:00 2001 From: su530201 <olivier.kaufmann@umons.ac.be> Date: Wed, 26 Apr 2023 14:30:44 +0200 Subject: [PATCH] Tries to implement switch_on in mux_2024 --- test_mux_2024.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test_mux_2024.py b/test_mux_2024.py index 9c801dc9..49059bb6 100644 --- a/test_mux_2024.py +++ b/test_mux_2024.py @@ -2,8 +2,9 @@ import time from utils import change_config change_config('config_ohmpi_card_3_15.py', verbose=False) from OhmPi.hardware_components.mux_2024_rev_0_0 import Mux, MUX_CONFIG +from OhmPi.hardware_components import raspberry_pi as controller_module -mux = Mux() +mux = Mux({'controller': controller_module.Controller()}) mux.switch_one(elec=1, role='M', state='on') time.sleep(2) mux.switch_one(elec=1, role='M', state='off') -- GitLab