led start change
This commit is contained in:
parent
920918ae91
commit
d2c224145e
7
main.py
7
main.py
@ -68,12 +68,17 @@ door = 21
|
|||||||
GPIO.setup(greenLed, GPIO.OUT)
|
GPIO.setup(greenLed, GPIO.OUT)
|
||||||
GPIO.output(greenLed, GPIO.LOW)
|
GPIO.output(greenLed, GPIO.LOW)
|
||||||
GPIO.setup(redLed, GPIO.OUT)
|
GPIO.setup(redLed, GPIO.OUT)
|
||||||
for i in range(3):
|
|
||||||
GPIO.output(redLed, GPIO.HIGH)
|
GPIO.output(redLed, GPIO.HIGH)
|
||||||
time.sleep(1)
|
time.sleep(1)
|
||||||
GPIO.output(redLed, GPIO.LOW)
|
GPIO.output(redLed, GPIO.LOW)
|
||||||
time.sleep(0.2)
|
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.setup(door, GPIO.OUT)
|
||||||
GPIO.output(door, GPIO.LOW)
|
GPIO.output(door, GPIO.LOW)
|
||||||
def badCred():
|
def badCred():
|
||||||
|
Loading…
Reference in New Issue
Block a user