Crates.io | bounced |
lib.rs | bounced |
version | 0.2.0 |
source | src |
created_at | 2020-11-01 07:34:32.271498 |
updated_at | 2020-12-27 18:23:50.734186 |
description | Debouncing and Testing for Signals and Buttons |
homepage | |
repository | https://github.com/brendanarciszewski/debounced-signals |
max_upload_size | |
id | 307422 |
size | 35,224 |
A utility to debounce signals.
Debouncing is best thought of as a running average. It might also be thought of as a hysteresis of an input: if the input changes, it needs to head towards the new state consistently and for long enough.
Contains an integration-type debouncer.
Compared to other debouncer libraries, it is extensible with your own debouncing algorithm.
This library is probably generic enough so that if you have some input that upon
meeting some desired history, the output could be some tri-state value (on, off,
and None
).
Projects similar to this include debouncr
and debounced-pin
.
Other inspirations include debounce.c
.