Created
July 24, 2011 18:30
-
-
Save bensonk/1102915 to your computer and use it in GitHub Desktop.
Gist action
This file contains hidden or 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/env python | |
| import serial, time | |
| ser = serial.Serial('/dev/tty.usbserial-FTFB009M', 9600, timeout=1) | |
| while True: | |
| for val in [ "0", "a", "c", "g", "o" ]: | |
| ser.write(val) | |
| for i in range(5): | |
| print ser.readline(), | |
| time.sleep(0.300) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment