from uspp import * # COM1 is initialized at 9600 baud. The # default data format is 8N1 s = SerialPort("/dev/ttyS0", None, 9600) s.flush() # discard unread bytes print ord(s.read()) # s.read() returns a one-character # string. We convert it into its ascii # value