User Tools

Site Tools


lisboa-motors-test

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

lisboa-motors-test [2015/01/22 15:51] (current)
zoza created
Line 1: Line 1:
 +<code python>
 +import serial, glob, time, servoclass
  
 +
 +while True:
 +    servo = int(raw_input("​which motor?​\n"​))
 +    servoToMove = servoclass.Servo(servo)
 +    movement = int(raw_input("​input an angle (ccw:80 / stop:90 / cw:​100)\n"​))
 +    servoToMove.move(movement)
 +</​code>​
lisboa-motors-test.txt ยท Last modified: 2015/01/22 15:51 by zoza