Advertisement
silver2row

MBC II

Feb 3rd, 2020
365
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.30 KB | None | 0 0
  1. def inlineServo():
  2.     angle = int(input("Please enter your angle: "))
  3.     if x <= 180 and x >= 0:
  4.         sleep(0.4)
  5.         motor.ServoMoveAngle(2, angle)
  6.         motor.ServoMoveAngle(6, angle)
  7.         print("The servo 2 has an angle of: ", angle)
  8.         print("The servo 6 has an angle of: ", angle)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement