Skip to content

Instantly share code, notes, and snippets.

@bazub
Created September 20, 2012 13:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bazub/3756086 to your computer and use it in GitHub Desktop.
Save bazub/3756086 to your computer and use it in GitHub Desktop.
Serial connection
ser = serial.Serial(
port='COM3',
baudrate=38400,
parity=serial.PARITY_NONE,
stopbits=serial.STOPBITS_ONE,
bytesize=serial.EIGHTBITS
)
ser.close()
ser.open()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment