From 8532361a5f2fe225f8bfe2a3e1d1af22264658f9 Mon Sep 17 00:00:00 2001 From: su530201 <olivier.kaufmann@umons.ac.be> Date: Wed, 26 Apr 2023 15:02:41 +0200 Subject: [PATCH] Tries to implement switch_on in mux_2024 --- test_mux_2024.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test_mux_2024.py b/test_mux_2024.py index f431efd3..3d76ef3f 100644 --- a/test_mux_2024.py +++ b/test_mux_2024.py @@ -4,8 +4,8 @@ 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 -print(MUX_CONFIG) -mux = Mux({'controller': controller_module.Controller()}) +MUX_CONFIG['controller'] = controller_module.Controller() +mux = Mux(MUX_CONFIG) mux.switch_one(elec=1, role='M', state='on') time.sleep(2) mux.switch_one(elec=1, role='M', state='off') -- GitLab