def __init__(self, port_id, command_deque, baud_rate):
self.port_id = port_id<EOL>self.command_deque = command_deque<EOL>self.baud_rate = baud_rate<EOL>threading.Thread.__init__(self)<EOL>self.daemon = True<EOL>self.arduino = serial.Serial(self.port_id, self.baud_rate,<EOL>timeout=int(self.timeout), writeTimeout=<NUM_LIT:0>)<EOL>self.stop_event = threading.Event()<EOL>if sys.platform == '<STR_LIT>':<EOL><INDENT>self.arduino.nonblocking()<EOL><DEDENT>
Constructor:

:param command_deque: A reference to the deque shared with the _command_handler

:param baud_rate: must match that of Arduino Sketch