Skip to content
Simple polling input debounce Arduino library.
C++
Branch: master
Clone or download
Mokolea Merge pull request #9 from Mokolea/support-released-duration-time
Support pressed-on time duration on release
Latest commit 43a6e6f Apr 17, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
examples Clean-up Apr 17, 2018
src Clean-up Apr 17, 2018
.gitignore Initial commit May 27, 2015
.travis.yml Travis CI Arduino platforms due and zero are broken Mar 14, 2016
LICENSE Change LICENSE May 31, 2017
README.md Support pressed-on time duration on release Apr 16, 2018
keywords.txt Clean-up Apr 17, 2018
library.json Support pressed-on time duration on release Apr 16, 2018
library.properties Support pressed-on time duration on release Apr 16, 2018

README.md

InputDebounce Arduino Library Build Status

Simple polling input debounce Arduino library. Also usable in the PlatformIO ecosystem.

Release License

Facts

  • used for push-button like switches
  • delivers input value (state) after it has been stable (not flickering) for longer than the debounce period
  • delivers continuous or single-shot pressed-on time duration [ms]
  • delivers pressed-on time duration on release [ms]
  • handles input pin with:
    • external pull-down resistor
    • external pull-up resistor
    • internal pull-up resistor (default)
  • handles switches with switching function:
    • normally open (default)
    • normally closed

Available from the Arduino IDE Library Manager and for PlatformIO as library (Id #123).

Usage

Just see the examples:

Apache License 2.0

-- Mario

You can’t perform that action at this time.