Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import time
- import RPi.GPIO
- LEDPin = 4
- RPi.GPIO.setmode(RPi.GPIO.BCM)
- RPi.GPIO.setup(pin, RPi.GPIO.OUT, initial=RPi.GPIO.LOW)
- while(True):
- RPi.GPIO.output(LEDPin, RPi.GPIO.HIGH)
- time.sleep(0.5)
- RPi.GPIO.output(LEDPin, RPi.GPIO.LOW)
- time.sleep(0.5)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement