debounced-pin
A platform-agnostic debounce library.
This library provides an update()
method to debounce a pin.
Implements approach 1 from here (archived 2018-09-03).
It also adds a wrapper for an InputPin
that debounces it's
is_high()
and is_low()
methods.
Add this to your Cargo.toml
:
toml
[dependencies]
debounced-pin = "0.3.0"
This crate currently requires [embedded-hal
] to be built using the
unproven
feature, for access to the InputPin
trait.
This project is licensed under either of
LICENSE-APACHE
or
online)LICENSE-MIT
or
online)at your option.