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:
- print("x: ", x)
- sleep(0.4)
- motor.ServoMoveAngle(2, angle)
- motor.ServoMoveAngle(6, angle)
- print("The servos have an angle of: ", 2, angle)
- print("The servos have an angle of: ", 6, angle)
- elif == x:
- sleep(0.4)
- for x in chain( range(0, 180, 45), range(180, 0, -45), [0] ):
- print(x)
- else:
- sleep(0.4)
- print("You are busted!", mylist)
- inlineServo()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement