Update garage.py

This commit is contained in:
2020-08-26 18:21:44 +00:00
parent a8535da194
commit d736d1e4e9
+2 -2
View File
@@ -37,7 +37,7 @@ def motor_button(channel):
GPIO.output(PIN_MOTOR, GPIO.HIGH) GPIO.output(PIN_MOTOR, GPIO.HIGH)
GPIO.output(PIN_LED, GPIO.LOW) GPIO.output(PIN_LED, GPIO.LOW)
else: else:
logging.info("fluke (motor button)") logging.info("flare (motor button)")
def remote_button(channel): def remote_button(channel):
time.sleep(0.01) time.sleep(0.01)
@@ -49,7 +49,7 @@ def remote_button(channel):
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:
logging.info("fluke (remote button)") logging.info("flare (remote button)")
GPIO.add_event_detect(PIN_MOTOR_BUTTON, GPIO.FALLING, callback=motor_button, bouncetime=250) GPIO.add_event_detect(PIN_MOTOR_BUTTON, GPIO.FALLING, callback=motor_button, bouncetime=250)
GPIO.add_event_detect(PIN_REMOTE_BUTTON, GPIO.FALLING, callback=remote_button, bouncetime=250) GPIO.add_event_detect(PIN_REMOTE_BUTTON, GPIO.FALLING, callback=remote_button, bouncetime=250)