Universal_Button

Generic multi-button handler with debounce, short/long events, exact last-press duration, pluggable readers, and enum-friendly API.

Author
Little Man Builds
Website
https://github.com/LittleManBuilds/Universal_Button
Github
https://github.com/littlemanbuilds/Universal_Button
Category
Signal Input/Output
License
MIT
Library Type
Contributed
Architectures
Any

Header-only Arduino library for handling multiple buttons with robust debounce; short/long classification; exact getLastPressDuration(); per-button overrides (timing/polarity/enable); reader callbacks for GPIO and expanders (e.g., MCP23017); and helpers (peek/clear/heldMillis/reset). Includes GPIO, port-expander, and cached-read examples.

Downloads

Filename Release Date File Size
Universal_Button-1.1.0.zip 2025-09-12 26.69 KiB
Universal_Button-1.0.0.zip 2025-09-03 26.57 KiB