We can use a debouncer to clean up the transitions of input signals, or any computation that results in a boolean value.
We can also use it to monitor for changes in such a value. As such it's useful as an edge detector even if the value transitions aren't noisy.
Something to keep in mind is that a debouncer will do nothing unless you call its update()
method frequently and regularly. If your debouncer isn't working, check this first.
Given that, you can use the value
, rose
, and fell
properties to get the current stable value, whether it just went to True
, or just went to False
, respectively.
Page last edited March 08, 2024
Text editor powered by tinymce.