Commit 870e32df authored by Deborah Joseph's avatar Deborah Joseph

Initial Commit

parent cd30a220
Pipeline #270 canceled with stages
# Import needed libraries
import RPi.GPIO as GPIO
from time import sleep
# GPIO Configuration
GPIO.setwarnings(False)
GPIO.setmode(GPIO.BCM)
GPIO.setup(16,GPIO.OUT)
# An infinite loop that blinks the led
while True:
# Put on the LED
GPIO.output(16,GPIO.HIGH)
print("LED COMES ON")
# Two seconds delay
sleep(2)
# Put off the LED
GPIO.output(16,GPIO.LOW)
print("LED GOES OFF")
# Another two seconds delay
sleep(2)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment