From 920918ae91a46abc3d0fbef63772494806a80b67 Mon Sep 17 00:00:00 2001 From: caschick221 Date: Mon, 6 May 2024 14:27:09 -0400 Subject: [PATCH] script and crontab --- main.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/main.py b/main.py index 4e8f52b..815d434 100644 --- a/main.py +++ b/main.py @@ -68,7 +68,11 @@ door = 21 GPIO.setup(greenLed, GPIO.OUT) GPIO.output(greenLed, GPIO.LOW) GPIO.setup(redLed, GPIO.OUT) -GPIO.output(redLed, GPIO.LOW) +for i in range(3): + GPIO.output(redLed, GPIO.HIGH) + time.sleep(1) + GPIO.output(redLed, GPIO.LOW) + time.sleep(0.2) GPIO.setup(door, GPIO.OUT) GPIO.output(door, GPIO.LOW)