Created
August 3, 2017 01:02
-
-
Save ryanvade/573ef22c2d68c420b4b207f544643821 to your computer and use it in GitHub Desktop.
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
con = serial.Serial("/dev/ttyACM0", 9600) | |
con.write(b'ohai') | |
waiting = con.in_waiting | |
response = con.read(waiting) | |
print(response) | |
con.close() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment