Crates.io | debouncr |
lib.rs | debouncr |
version | 0.2.2 |
source | src |
created_at | 2020-04-28 08:05:05.650007 |
updated_at | 2020-11-21 21:15:17.648538 |
description | A simple no-std input debouncer to detect rising and falling edges with minimal RAM requirements. |
homepage | |
repository | https://github.com/dbrgn/debouncr/ |
max_upload_size | |
id | 234917 |
size | 35,223 |
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
Licensed under either of
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.