This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
motors-test-1 [2012/08/01 15:02] 46.57.71.90 created |
motors-test-1 [2012/08/01 15:05] 46.57.71.90 |
||
---|---|---|---|
Line 11: | Line 11: | ||
#get the active port | #get the active port | ||
portz=glob.glob("/dev/ttyUSB*")[0] | portz=glob.glob("/dev/ttyUSB*")[0] | ||
- | print portz | + | #print portz |
#specify the port as an argument | #specify the port as an argument | ||
my_board = Arduino(portz) | my_board = Arduino(portz) | ||
- | #my_servo = Servo(10, my_board, 0) | ||
#declare output pins as a list/tuple | #declare output pins as a list/tuple |