def run(self):
while not self.is_stopped():<EOL><INDENT>try:<EOL><INDENT>if self.arduino.inWaiting():<EOL><INDENT>c = self.arduino.read()<EOL>self.command_deque.append(ord(c))<EOL><DEDENT>else:<EOL><INDENT>time.sleep(<NUM_LIT>)<EOL><DEDENT><DEDENT>except OSError:<EOL><INDENT>pass<EOL><DEDENT>except IOError:<EOL><INDENT>self.stop()<EOL><DEDENT><DEDENT>self.close()<EOL>
This method continually runs. If an incoming character is available on the serial port
it is read and placed on the _command_deque
@return: Never Returns