You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
406 B
Python

2 years ago
import maestro
servo = maestro.Controller()
import time
print("1")
for i in range(18):
servo.setAccel(i,10) #set servo 0 acceleration to 4
servo.setSpeed(i,50) #set speed of servo 1
servo.setTarget(i,6000) #set servo to move to center position
time.sleep(1)
#servo.setTarget(0,6000)
#x = servo.getPosition(1) #get the current position of servo 1
print("5")
#servo.close()
print("6")