Update garage.py - 0.8s impulse for remote
This commit is contained in:
@@ -42,10 +42,10 @@ def motor_button(channel):
|
|||||||
def remote_button(channel):
|
def remote_button(channel):
|
||||||
time.sleep(0.01)
|
time.sleep(0.01)
|
||||||
if channel == 0 or GPIO.input(PIN_REMOTE_BUTTON) == False:
|
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_REMOTE, GPIO.HIGH)
|
||||||
GPIO.output(PIN_LED, 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_REMOTE, GPIO.LOW)
|
||||||
GPIO.output(PIN_LED, GPIO.LOW)
|
GPIO.output(PIN_LED, GPIO.LOW)
|
||||||
else:
|
else:
|
||||||
|
|||||||
Reference in New Issue
Block a user