Skip to content
Snippets Groups Projects
Commit 1349ef89 authored by ckd2-elford's avatar ckd2-elford
Browse files

Update file Task.py

parent 85732f22
No related branches found
No related tags found
No related merge requests found
Task.py 0 → 100644
import RPi.GPIO as GPIO
import time
GPIO.setmode(GPIO.BCM)
GPIO.setwarnings(False)
# Green
GPIO.setup(24,GPIO.OUT)
# Yellow
GPIO.setup(8,GPIO.OUT)
# Red
GPIO.setup(22,GPIO.OUT)
while True:
GPIO.output(24,GPIO.HIGH)
time.sleep(0.1)
GPIO.output(24,GPIO.LOW)
time.sleep(0.1)
GPIO.output(8,GPIO.HIGH)
time.sleep(0.1)
GPIO.output(8,GPIO.LOW)
time.sleep(0.1)
GPIO.output(22,GPIO.HIGH)
time.sleep(0.1)
GPIO.output(22,GPIO.LOW)
time.sleep(0.1)
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment