sibiryakov / rust-debounced-pin

Adds a wrapper for an InputPin that debounces it's is_high() and is_low() methods.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

debounced-pin

Build Status Crate Docs

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.

About

Adds a wrapper for an InputPin that debounces it's is_high() and is_low() methods.

License:Apache License 2.0


Languages

Language:Rust 100.0%