Professional Documents
Culture Documents
#
#
#
Don't try to run this as a script or it will all be over very quickly
it won't do any harm though.
these are all the elements you need to control PWM on 'normal' GPIO ports
with RPi.GPIO - requires RPi.GPIO 0.5.2a or higher
#
#
#
#
p.start(50)
p.ChangeDutyCycle(90)
GPIO.cleanup()