Skip to content

ARDUniaButton 0.2.0

Latest

Choose a tag to compare

@ARDUnia ARDUnia released this 30 Sep 19:54

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 supported INPUT_PULLDOWN configurations
  • 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

  • BasicUsage
  • Callbacks
  • VolumeControl

Project

ARDUniaButton is an open-source project from ARDUnia, created by Hamidreza Milaninia.

Released under the MIT License.