예제 #1
0
 def __init__(self,
              hardware_id=None,
              auto_connect=False,
              max_connection_errors=3,
              connection_timeout=4,
              do_hanshake=True,
              do_authentification=True,
              speed=115200):
     Driver.__init__(self, hardware_id, auto_connect, max_connection_errors,
                     connection_timeout, do_hanshake, do_authentification)
예제 #2
0
 def __init__(self,
              hardware_id=None,
              auto_connect=False,
              max_connection_errors=3,
              connection_timeout=4,
              do_hanshake=True,
              do_authentification=True,
              speed=115200):
     Driver.__init__(self, hardware_id, auto_connect, max_connection_errors,
                     connection_timeout, do_hanshake, do_authentification)
     self._hardware_interface = SerialHardwareInterface(
         self, ExampleArduinoProtocol, True, speed)
예제 #3
0
 def __init__(self, auto_connect=False, max_connection_errors=2,
     connection_timeout=4, speed=115200, *args, **kwargs):
     Driver.__init__(self, auto_connect, max_connection_errors, connection_timeout)
     self._hardware_interface = MockHardwareInterface(self, MockProtocol, speed)
예제 #4
0
 def __init__(self, hardware_id=None, auto_connect=False,
     max_connection_errors=3, connection_timeout=4, do_hanshake=True,
     do_authentification=True, speed=115200):
     Driver.__init__(self, hardware_id, auto_connect, max_connection_errors, connection_timeout, do_hanshake, do_authentification)
     self._hardware_interface = SerialHardwareInterface(self, ExampleArduinoProtocol, True, speed)