Update garage.py - 0.8s impulse for remote

This commit is contained in:
2020-08-17 10:02:21 +00:00
parent d4d6b4cb08
commit a8535da194
+2 -2
View File
@@ -42,10 +42,10 @@ def motor_button(channel):
def remote_button(channel):
time.sleep(0.01)
if channel == 0 or GPIO.input(PIN_REMOTE_BUTTON) == False:
logging.info("trigger remote")
logging.info("trigger remote 0.8")
GPIO.output(PIN_REMOTE, GPIO.HIGH)
GPIO.output(PIN_LED, GPIO.HIGH)
time.sleep(0.4)
time.sleep(0.8)
GPIO.output(PIN_REMOTE, GPIO.LOW)
GPIO.output(PIN_LED, GPIO.LOW)
else: