Skip to content

Instantly share code, notes, and snippets.

@pintman pintman/PWM Secret
Created Aug 6, 2016

Embed
What would you like to do?
import RPi.GPIO as GPIO
GPIO.setmode(GPIO.BOARD)
GPIO.setup(33, GPIO.OUT) # red LED
p = GPIO.PWM(33, 50) # channel=33 frequency=50Hz
p.start(80)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.