parent
dda10f9bcf
commit
c167def191
6
test.py
6
test.py
|
@ -10,7 +10,7 @@ GPIO.setup(4, GPIO.OUT)
|
||||||
GPIO.output(4, GPIO.HIGH)
|
GPIO.output(4, GPIO.HIGH)
|
||||||
time.sleep(1)
|
time.sleep(1)
|
||||||
GPIO.output(4, GPIO.LOW)
|
GPIO.output(4, GPIO.LOW)
|
||||||
time.sleep(5)
|
time.sleep(1)
|
||||||
GPIO.cleanup()
|
GPIO.cleanup()
|
||||||
|
|
||||||
# def debug_print(message: str):
|
# def debug_print(message: str):
|
||||||
|
@ -36,7 +36,7 @@ GPIO.cleanup()
|
||||||
# error_print("Unknown state for relay ("+state+")")
|
# error_print("Unknown state for relay ("+state+")")
|
||||||
|
|
||||||
# while True:
|
# while True:
|
||||||
# relay_controller(7, "True")
|
# relay_controller(4, "True")
|
||||||
# time.sleep(2)
|
# time.sleep(2)
|
||||||
# relay_controller(7, "False")
|
# relay_controller(4, "False")
|
||||||
# time.sleep(2)
|
# time.sleep(2)
|
Loading…
Reference in New Issue