a guest May 10th, 2011 542 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- import serial
- import time
- baudrate = raw_input("Please enter the required baud rate:")
- ## You need to add the locations for your system, i.e. COM* for Windows, /dev/tty* for Nix systems
- for device in locations:
- print "Trying...", device
- arduino = serial.Serial(device, baudrate)
- print "Failed.."
- count = 5
- while count < 10:
- print arduino.readline()
- print "Fail"
RAW Paste Data