Created
September 20, 2012 13:57
-
-
Save bazub/3756086 to your computer and use it in GitHub Desktop.
Serial connection
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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