led start change

This commit is contained in:
caschick221 2024-05-06 14:28:46 -04:00
parent 920918ae91
commit d2c224145e

15
main.py
View File

@ -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)