Advertisement
uas_arduino

Python Serial Example

Apr 26th, 2013
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.18 KB | None | 0 0
  1. import serial
  2.  
  3. # Change YOUR_DEVICE to the correct device for your operating system
  4. ser = serial.Serial('YOUR_DEVICE', 9600)
  5.  
  6. ser.write('this is a test\n')
  7.  
  8. print ser.read()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement