Skip to content

Instantly share code, notes, and snippets.

@sweemeng
Created September 10, 2010 08:23
Show Gist options
  • Save sweemeng/573304 to your computer and use it in GitHub Desktop.
Save sweemeng/573304 to your computer and use it in GitHub Desktop.
import serial
s = serial.Serial(2)
s.write('t')
print(s.readline())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment