diff --git a/ras_pi_RRCS_BusyLight.py b/ras_pi_RRCS_BusyLight.py index 0bac1a7..0617111 100644 --- a/ras_pi_RRCS_BusyLight.py +++ b/ras_pi_RRCS_BusyLight.py @@ -57,7 +57,7 @@ GPIO.setwarnings(False) GPIO.setmode(GPIO.BOARD) GPIO.setup(12, GPIO.IN, pull_up_down=GPIO.PUD_DOWN) -GPIO.add_event_detect(12, GPIO.BOTH, callback=button_callback, bouncetime=200) +GPIO.add_event_detect(12, GPIO.RISING, callback=button_callback, bouncetime=200) input("Press enter to quit\n\n") GPIO.cleanup() \ No newline at end of file