4 releases (2 breaking)
0.3.0 | Dec 18, 2019 |
---|---|
0.2.0 | May 18, 2019 |
0.1.1 | Feb 16, 2019 |
0.1.0 | Feb 16, 2019 |
#735 in Embedded development
Used in booster
20KB
333 lines
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
- Apache License, Version 2.0 (
LICENSE-APACHE
or online) - MIT License (
LICENSE-MIT
or online)
at your option.
Dependencies
~71KB