Wrap Up

circuitpython_wrap.jpg
From wikipedia CC BY-SA 3.0 by Takeaway

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.

This guide was first published on Jan 08, 2019. It was last updated on Jan 08, 2019. This page (Wrap Up) was last updated on Oct 29, 2019.