script and crontab
This commit is contained in:
parent
93d6364752
commit
920918ae91
6
main.py
6
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)
|
||||
|
Loading…
Reference in New Issue
Block a user