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
#!/usr/bin/python | |
####### | |
# This program would generate PWM on GPIO 7 Pin 26 of P1 | |
# with 50% Dutycyle at 1kHz | |
####### | |
import RPi.GPIO as GPIO | |
from time import sleep | |
GPIO.setmode(GPIO.BCM) | |
GPIO.setup(7,GPIO.OUT) |