https://github.com/evert-arias/easybutton
Arduino library for debouncing momentary contact switches, detect press, release, long press and sequences with event definitions and callbacks.
https://github.com/evert-arias/easybutton
arduino arduino-library button debounce debounce-button debounce-buttons detect-presses easybutton esp32 esp32-arduino esp8266 esp8266-arduino platformio pushbutton switch tactile tactile-switches touch touch-button trigger
Last synced: about 1 month ago
JSON representation
Arduino library for debouncing momentary contact switches, detect press, release, long press and sequences with event definitions and callbacks.
- Host: GitHub
- URL: https://github.com/evert-arias/easybutton
- Owner: evert-arias
- License: mit
- Created: 2018-09-05T14:38:28.000Z (over 6 years ago)
- Default Branch: main
- Last Pushed: 2025-03-03T02:38:55.000Z (2 months ago)
- Last Synced: 2025-04-04T14:48:36.991Z (about 1 month ago)
- Topics: arduino, arduino-library, button, debounce, debounce-button, debounce-buttons, detect-presses, easybutton, esp32, esp32-arduino, esp8266, esp8266-arduino, platformio, pushbutton, switch, tactile, tactile-switches, touch, touch-button, trigger
- Language: C++
- Homepage: https://evert-arias.github.io/easybtn-docs
- Size: 354 KB
- Stars: 462
- Watchers: 14
- Forks: 65
- Open Issues: 33
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# EasyButton
> 🔥 **EasyButton 3.0 Poll**: We're considering a major update with bug fixes and improved documentation! [VOTE NOW](https://github.com/evert-arias/EasyButton/discussions/100) to help shape the future of EasyButton! 🔥
[](http://doge.mit-license.org)
Arduino library for debouncing momentary contact switches, detect press, release, long press and sequences with event definitions and callbacks.
Full documentation available at:
## Description
**EasyButton** is an small Arduino library for debouncing momentary contact switches like tactile buttons. It uses events and callbacks to trigger actions when a button is pressed once or held for a given duration. It also provides a sequence counter to be able to rise an event when a given pattern of presses has been matched.
## Installation
## How to use
## Examples
[Single Press](https://evert-arias.github.io/easybtn-docs/docs/on-single-press-example)
[Pressed For Duration](https://evert-arias.github.io/easybtn-docs/docs/on-pressed-for-duration-example)
[Detecting Sequence](https://evert-arias.github.io/easybtn-docs/docs/on-sequence-example)
## Copyright
[MIT](../LICENSE.md) © [Evert Arias](https://me.treve.dev/)