From d2c224145e2989ea6ec955c476cbd362e519d91f Mon Sep 17 00:00:00 2001 From: caschick221 Date: Mon, 6 May 2024 14:28:46 -0400 Subject: [PATCH] led start change --- main.py | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/main.py b/main.py index 815d434..522cfb5 100644 --- a/main.py +++ b/main.py @@ -68,11 +68,16 @@ door = 21 GPIO.setup(greenLed, GPIO.OUT) GPIO.output(greenLed, GPIO.LOW) GPIO.setup(redLed, GPIO.OUT) -for i in range(3): - GPIO.output(redLed, GPIO.HIGH) - time.sleep(1) - GPIO.output(redLed, GPIO.LOW) - time.sleep(0.2) + +GPIO.output(redLed, GPIO.HIGH) +time.sleep(1) +GPIO.output(redLed, GPIO.LOW) +time.sleep(0.2) + +GPIO.output(greenLed, GPIO.HIGH) +time.sleep(1) +GPIO.output(greenLed, GPIO.LOW) +time.sleep(0.2) GPIO.setup(door, GPIO.OUT) GPIO.output(door, GPIO.LOW)