SHARE
TWEET

Untitled

a guest Dec 8th, 2019 59 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import RPi.GPIO as GPIO
  2. GPIO.setmode(GPIO.BOARD)
  3. GPIO.setup(12, GPIO.OUT)
  4. p = GPIO.PWM(12,50)
  5. p.start(50)
  6.  
  7. input('Press return to stop:')   # use raw_input for Python 2
  8. p.stop()
  9. GPIO.cleanup()
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top