Update garage.py
This commit is contained in:
@@ -37,7 +37,7 @@ def motor_button(channel):
|
||||
GPIO.output(PIN_MOTOR, GPIO.HIGH)
|
||||
GPIO.output(PIN_LED, GPIO.LOW)
|
||||
else:
|
||||
logging.info("fluke (motor button)")
|
||||
logging.info("flare (motor button)")
|
||||
|
||||
def remote_button(channel):
|
||||
time.sleep(0.01)
|
||||
@@ -49,7 +49,7 @@ def remote_button(channel):
|
||||
GPIO.output(PIN_REMOTE, GPIO.LOW)
|
||||
GPIO.output(PIN_LED, GPIO.LOW)
|
||||
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_REMOTE_BUTTON, GPIO.FALLING, callback=remote_button, bouncetime=250)
|
||||
|
||||
Reference in New Issue
Block a user