10-05-2021, 05:39 AM
If you have plans to work on that feature I would consider to leave it up to the user what value to use per input channel. Let the minimal value be bounded by hardware interrupt but let the user set the maximum value to be also as large as possible. Someone can use the same feature to set the reset timer. For example user don't want to allow more than one state change within 5 seconds. This can be accomplished within the same piece of code that handles the debouncer.