diff --git a/ohmpi/hardware_components/mb_2023_0_X.py b/ohmpi/hardware_components/mb_2023_0_X.py index 288f5502f8bb8a9596a5e916b35c1ff16be4a966..ab23d29c13f7e6cd61803e283ab4dcb8712bdd55 100644 --- a/ohmpi/hardware_components/mb_2023_0_X.py +++ b/ohmpi/hardware_components/mb_2023_0_X.py @@ -156,7 +156,6 @@ class Tx(TxAbstract): @polarity.setter def polarity(self, polarity): - print(f'mcp address : {self.mcp_board._device.device_address}') assert polarity in [-1, 0, 1] self._polarity = polarity if polarity == 1: diff --git a/ohmpi/hardware_components/mb_2024_0_2.py b/ohmpi/hardware_components/mb_2024_0_2.py index 7d22b5791d6ce9be4a8cb7c96857344f6ba96371..f318c54df9b0804aa73900aa0cd351da0e0b94c9 100644 --- a/ohmpi/hardware_components/mb_2024_0_2.py +++ b/ohmpi/hardware_components/mb_2024_0_2.py @@ -64,7 +64,7 @@ class Tx(Tx_mb_2023): def __init__(self, **kwargs): super().__init__(**kwargs) # I2C connexion to MCP23008, for current injection - self.mcp_board = MCP23008(self.connection, address=kwargs['mcp_address']) + # self.mcp_board = MCP23008(self.connection, address=kwargs['mcp_address']) # Initialize LEDs self.pin4 = self.mcp_board.get_pin(4) # Ohmpi_run @@ -81,6 +81,7 @@ class Tx(Tx_mb_2023): Tx_mb_2023.inject(self, polarity=polarity, injection_duration=injection_duration) self.pin6.value = False + class Rx(Rx_mb_2023): def __init__(self, **kwargs): super().__init__(**kwargs)