#button #short #long #debounce #vs #discriminate #presses

no-std debounced-button

Debounce a button and discriminate short vs. long presses

5 releases (3 breaking)

0.4.1 Feb 17, 2023
0.4.0 Feb 4, 2023
0.3.0 Nov 19, 2022
0.2.0 May 9, 2022
0.1.0 Apr 9, 2022

#722 in Hardware support

47 downloads per month

MIT/Apache

10KB
103 lines

crates.io crates.io Documentation Minimum Supported Rust Version

debounced-button

A rust-embedded debounced-button, discriminating short- and long-presses.

API reference

Minimum Supported Rust Version (MSRV)

This crate is guaranteed to compile on stable Rust 1.46 and up. It might compile with older versions but that may change in any new patch release.

License

Licensed under either of

at your option.

Contribution

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.

Code of Conduct

Contribution to this crate is organized under the terms of the Rust Code of Conduct, the maintainer of this crate promises to intervene to uphold that code of conduct.

Dependencies

~71KB