AwesomeStudioPedal
A programmable, multi-profile foot controller for DAWs, score readers, and studio automation
Loading...
Searching...
No Matches
i_button.h
Go to the documentation of this file.
1#pragma once
2
12{
13public:
14 virtual ~IButton() = default;
15
22 virtual void setup() = 0;
23
29 virtual bool event() = 0;
30
37 virtual void reset() = 0;
38};
Interface for interrupt-driven button input.
Definition i_button.h:12
virtual void reset()=0
Resets the pressed flag.
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 ~IButton()=default