Created
August 31, 2012 16:06
-
-
Save csu/3555152 to your computer and use it in GitHub Desktop.
Write to serial with Python
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
#!/usr/bin/python | |
import serial | |
ser = serial.Serial('/dev/tty.usbmodem621', 9600) | |
ser.write('1') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment