Code: Select all
import RPi.GPIO as GPIO import time GPIO.setmode(GPIO.BCM) GPIO.setup(12, GPIO.OUT) p = GPIO.PWM(12, 100) p.start(5) time.sleep(5) p.stop() GPIO.cleanup()
All I need it to do is run clockwise for a set (Short) period of time and then stop until the method is called again. Any help will be appreciated.
I'm also looking to learn this for any future projects I might do so the more info the better.