rust-debounced-pin
rust-debounced-pin copied to clipboard
Adds a wrapper for an InputPin that debounces it's is_high() and is_low() methods.
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.
Installation
Add this to your Cargo.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.
License
This project is licensed under either of
at your option.