Skip to content

Instantly share code, notes, and snippets.

@fullmated
Created March 9, 2012 14:43
Show Gist options
  • Save fullmated/2006792 to your computer and use it in GitHub Desktop.
Save fullmated/2006792 to your computer and use it in GitHub Desktop.
import serial
import time
ser = serial.Serial(5, 9600, timeout = 0)
print ser.portstr
c = "\0"
while True:
time.sleep(0.016);
print ser.read(30)
if(c == 'q'):
break;
ser.close()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment