diff --git a/config.py b/config.py index 045778821a2e29dd4c66b3e162e79ce22b160343..d06abbe2714b270ae537dd908a9e77420d15f2f4 100644 --- a/config.py +++ b/config.py @@ -17,7 +17,8 @@ OHMPI_CONFIG = { 'version': 2, 'max_elec': 64, 'board_addresses': {'A': 0x73, 'B': 0x72, 'M': 0x71, 'N': 0x70}, # def. {'A': 0x76, 'B': 0x71, 'M': 0x74, 'N': 0x70} - 'settings': 'ohmpi_settings.json' + 'settings': 'ohmpi_settings.json', + 'board_version':2.0 } # TODO: add a dictionary with INA models and associated gain values # CONTROL_CONFIG = { diff --git a/ohmpi.py b/ohmpi.py index fc6ba5ff43fb8954d1efb07efb92865a4de59f3f..cd474e1099f23f82399b7e02411e42fe5269bcd1 100644 --- a/ohmpi.py +++ b/ohmpi.py @@ -164,12 +164,6 @@ class OhmPi(object): self.pin1.direction = Direction.OUTPUT self.pin1.value = False - - # Starts the command processing thread - self.cmd_listen = True - self.cmd_thread = threading.Thread(target=self.process_commands) - self.cmd_thread.start() - # Starts the command processing thread self.cmd_listen = True self.cmd_thread = threading.Thread(target=self._control) @@ -285,7 +279,7 @@ class OhmPi(object): return output @staticmethod - def get_platform(): + def _get_platform(): """Get platform name and check if it is a raspberry pi Returns =======