From 1349ef89636f5a3e5de1d3c9c7d8702a9da0269f Mon Sep 17 00:00:00 2001
From: ckd2-elford <cosmo2.elford@live.uwe.ac.uk>
Date: Fri, 27 Oct 2023 13:13:27 +0000
Subject: [PATCH] Update file Task.py

---
 Task.py | 29 +++++++++++++++++++++++++++++
 1 file changed, 29 insertions(+)
 create mode 100644 Task.py

diff --git a/Task.py b/Task.py
new file mode 100644
index 0000000..1b8d88c
--- /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
-- 
GitLab