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