Skip to content

Mokolea/InputDebounce

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

99 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

InputDebounce Arduino Library Build Status

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

Release License PlatformIO Registry

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