ARDUniaButton 0.2.0
Initial public release of ARDUniaButton, a lightweight and non-blocking Arduino button event library.
Features
- Non-blocking button handling using
millis() - Configurable debounce
- Press and Release events
- Single Click
- Double Click
- Multi Click
- Long Press
- Repeat while holding
- Polling API
- Callback API
- Active LOW / Active HIGH support
INPUT,INPUT_PULLUP, and supportedINPUT_PULLDOWNconfigurations- No dynamic memory allocation
- No third-party dependencies
Compatibility
Tested on:
- Arduino UNO
- ESP8266
- ESP32
Default Wiring
GPIO → Button → GND
The default configuration uses the internal INPUT_PULLUP resistor.
Examples
BasicUsageCallbacksVolumeControl
Project
ARDUniaButton is an open-source project from ARDUnia, created by Hamidreza Milaninia.
- ARDUnia: https://ardunia.ir/
- Hamidreza Milaninia: https://hrmnia.com/
- GitHub: https://github.com/ARDUnia/ARDUniaButton
Released under the MIT License.