rust-debounced-pin icon indicating copy to clipboard operation
rust-debounced-pin copied to clipboard

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

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

  • Apache License, Version 2.0 (LICENSE-APACHE or online)
  • MIT License (LICENSE-MIT or online)

at your option.