Blink LED on Raspberry Pi 3 with Python

import time
import RPi.GPIO as GPIO
GPIO.setmode(GPIO.BOARD)
GPIO.setup(11,GPIO.OUT)
while True:
    print("LED ON")
    GPIO.output(11,True)
    time.sleep(1)
    print("LED OFF")
    GPIO.output(11,False)
    time.sleep(1)
You can leave a response, or trackback from your own site.
Leave a Reply to the article

Learning & Certifications
Follow Us
Facebook Icon   Linked In Icon   Twitter Icon  
Validation and Recognition

Valid CSS! Valid HTML5!          Protected by Copyscape