uas_arduino

Python Serial Example

Apr 26th, 2013
44
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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()
RAW Paste Data