diff --git a/Task.py b/Task.py new file mode 100644 index 0000000000000000000000000000000000000000..1b8d88c4b0faae5cfb75812aa1cabcf40bb62c3c --- /dev/null +++ b/Task.py @@ -0,0 +1,29 @@ +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