Advertisement
silver2row

MBC III

Feb 3rd, 2020
346
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.55 KB | None | 0 0
  1. def inlineServo():
  2.     angle = int(input("Please enter your angle: "))
  3.     if x <= 180 and x >= 0:
  4.         print("x: ", x)
  5.         sleep(0.4)
  6.         motor.ServoMoveAngle(2, angle)
  7.         motor.ServoMoveAngle(6, angle)
  8.         print("The servos have an angle of: ", 2, angle)
  9.         print("The servos have an angle of: ", 6, angle)
  10.     elif == x:
  11.         sleep(0.4)
  12.         for x in chain( range(0, 180, 45), range(180, 0, -45), [0] ):
  13.             print(x)
  14.     else:
  15.         sleep(0.4)
  16.         print("You are busted!", mylist)
  17.  
  18. inlineServo()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement