Overview of AceButton
developAceButton is an adjustable, compact, and event-driven button library designed for Arduino platforms. It handles mechanical button inputs (momentary, maintained, or switches) and provides debouncing logic.
Key features include:
- Event-driven architecture: Uses
EventHandlercallbacks or theIEventHandlerinterface to respond to button state changes. - Multiple event types: Supports events like
kEventPressed,kEventReleased,kEventClicked,kEventDoubleClicked,kEventLongPressed,kEventRepeatPressed,kEventLongReleased, andkEventHeartBeat. - Low resource usage: Optimized for minimal static memory and CPU cycles.
- Flexible hardware support: Supports standard digital pins, Binary Encoded buttons (multiple buttons on few pins), and Resistor Ladder buttons (multiple buttons on one analog pin).