ButtonKing
Arduino multi-events Button Library
Install / Use
/learn @TanPitch/ButtonKingREADME

This library is improving the usage of a simple singe button. It takes a single pushbutton to do some of the typical button press events like single clicks, double clicks and long-time pressing. This will make your project less buttons and much more funtion inside it.
lastest beta version
ButtonKing 1.2.0 beta (download here)
- add Triple click action
- add interval time counter
- add new Counting mode
lastest worked version
ButtonKing 1.2.0 (download here)
- new algorithm
- more stability
- some minor improvement
- example file bugs fixed
- all worked : test on
- Arduino Zero, Leonardo, Uno, Mega, Due
- ESP8266 and ESP32
- STM32 based boards
to install ButtonKing library install instruction
check lists
- [x] short/long period for button pressing.
- [x] double click with button pressing.
- [x] tripple click.
- [ ] click for the specific times before time run-out. (beta)
for more information Button King wiki
If there is any problem, please submit an issue on github
Related Skills
node-connect
349.0kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
109.4kCreate 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
349.0kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
349.0kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
