InputDebounce
Simple polling input debounce Arduino library.
Install / Use
/learn @Mokolea/InputDebounceREADME
InputDebounce Arduino Library 
Simple polling input debounce Arduino library. Also usable in the PlatformIO ecosystem.
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:
- general - tricky
- using callback functions - :white_check_mark: preferred method
- using inheritance - advanced
Apache License 2.0
-- Mario
Related Skills
node-connect
343.1kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
90.0kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
343.1kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
343.1kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
