Hi,
I am using ble_app_hrs application as a reference code.
in our case i have gpio interrupt for every 25 ms.
what should i keep BUTTON_DETECTION_DELAY for 25ms gpio interrupt.
Kindly suggest me
Regards Balaji
Hi,
I am using ble_app_hrs application as a reference code.
in our case i have gpio interrupt for every 25 ms.
what should i keep BUTTON_DETECTION_DELAY for 25ms gpio interrupt.
Kindly suggest me
Regards Balaji
BUTTON_DETECTION_DELAY is used for debouncing. So if a signal is triggered and stay in active level for less than BUTTON_DETECTION_DELAY (ms), it will not be considered as button pressed.
So depend on how long your signal be stayed in active level, you can set your BUTTON_DETECTION_DELAY accordingly to avoid glitch and noise.