|
AwesomeStudioPedal
A programmable, multi-profile foot controller for DAWs, score readers, and studio automation
|
Interface for interrupt-driven button input. More...
#include <i_button.h>
Public Member Functions | |
| virtual | ~IButton ()=default |
| virtual void | setup ()=0 |
| Initializes the GPIO pin for button input. | |
| virtual bool | event ()=0 |
| Checks for a button press event and clears the flag. | |
| virtual void | reset ()=0 |
| Resets the pressed flag. | |
| virtual bool | releaseEvent () |
| Checks for a button release event and clears the flag. | |
Interface for interrupt-driven button input.
Abstracts button press detection so that PedalLogic is independent of the concrete hardware ISR mechanism. Implementations live in the platform-specific hardware packages.
Definition at line 11 of file i_button.h.
|
virtualdefault |
|
pure virtual |
|
inlinevirtual |
Checks for a button release event and clears the flag.
Returns true exactly once per release edge (HIGH after press), then resets. Uses the ISR's awaitingRelease flag — safe to call from the main loop.
Reimplemented in Button, and Button.
Definition at line 45 of file i_button.h.
|
pure virtual |
|
pure virtual |