This shows you the differences between two versions of the page.
— |
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> |