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)
Blink LED on Raspberry Pi 3 with Python
March 25th, 2019 Nilesh Chaurasia