Last active
May 31, 2020 06:34
-
-
Save vestige/34124692ffe8c31429b7abf8c50c8a39 to your computer and use it in GitHub Desktop.
pwm.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import RPi.GPIO as GPIO | |
from time import sleep | |
GPIO.setmode(GPIO.BCM) | |
GPIO.setup(16, GPIO.OUT) | |
pwm = GPIO.PWM(16, 100) | |
pwm.start(5) | |
while True: | |
sleep(0.1) | |
GPIO.cleanup() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment