fixed some servo bugs

This commit is contained in:
Tristan Hearn
2013-05-08 18:33:30 -04:00
parent 13a163482b
commit e9cc111db4
3 changed files with 35 additions and 33 deletions

View File

@@ -71,7 +71,12 @@ def LCD(tx,baud,ssbaud,message, port=""):
if __name__=="__main__":
Blink(13,9600)
#LCD(5,9600,9600," test ")
#adjustBrightness(5,11,9600)
#softBlink(11,9600)
a = Arduino('9600', port="/dev/tty.usbserial-A700e08i")
print a.Servos.attach(2),"attach"
import time
i = 0
while True:
a.Servos.write(2,10*i)
time.sleep(.1)
print a.Servos.read(2),10*i
i+=1