Crates.io | debounced-pin |
lib.rs | debounced-pin |
version | 0.3.0 |
source | src |
created_at | 2019-02-16 04:29:00.893232 |
updated_at | 2019-12-18 10:22:21.017827 |
description | A platform-agnostic debounce library. It also adds a wrapper for an `InputPin` that debounces it's `is_high()` and `is_low()` methods. |
homepage | |
repository | https://github.com/Winseven4lyf/rust-debounced-pin |
max_upload_size | |
id | 115080 |
size | 51,695 |
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
:
[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.