Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from MotorBridgeI import MotorBridgeCape
- from time import sleep
- servo_name = 1
- frequency = 50
- motor = MotorBridgeCape()
- motor.ServoInit( servo_name, frequency )
- for angle in 0, 45, 90, 135, 180, 135, 90, 45, 0:
- sleep( 0.5 )
- motor.ServoMoveAngle( servo_name, angle )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement