Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def inlineServo():
- angle = int(input("Please enter your angle: "))
- if x <= 180 and x >= 0:
- sleep(0.4)
- motor.ServoMoveAngle(2, angle)
- motor.ServoMoveAngle(6, angle)
- print("The servo 2 has an angle of: ", angle)
- print("The servo 6 has an angle of: ", angle)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement