deb
debouncr
cargo install debouncr
deb

debouncr

A simple no-std input debouncer to detect rising edges with minimal RAM requirements.

by Danilo Bargen

0.2.2 (see all)License:MIT OR Apache-2.0
cargo install debouncr
Readme

Debouncr

Build status Crates.io Version Crates.io Downloads No Std

A simple and efficient no_std input debouncer that uses integer bit shifting to debounce inputs. The algorithm can detect rising and falling edges and only requires 1 byte of RAM for detecting up to 8 consecutive high/low states or 2 bytes of RAM for detecting up to 16 consecutive high/low states.

The algorithm is based on the Ganssle Guide to Debouncing (section "An Alternative").

Docs: https://docs.rs/debouncr

License

Licensed under either of

Contributing

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

GitHub Stars

13

LAST COMMIT

2yrs ago

MAINTAINERS

1

CONTRIBUTORS

2

OPEN ISSUES

2

OPEN PRs

0
VersionTagPublished
0.2.2
2yrs ago
0.2.1
2yrs ago
0.2.0
2yrs ago
0.1.3
2yrs ago
No alternatives found
No tutorials found
Add a tutorial