Control servo motor with raspberry pi and python
Uses RPi.GPIO and time libraries.
Create new servo instanceimport Servo
servo = Servo.Init(7)
Provide your control/pwm pin in the constructor
Use this method to control your motor by degreeAccepts degrees between 0 and 180
import Servo
servo = Servo.Init(7)
servo.run(90)