MIDI Control Surface library for Arduino
|
Go to the documentation of this file.
8 template <
class Callback = EmptySelectorCallback>
33 #ifdef AH_INDIVIDUAL_BUTTON_INVERT
GenericSwitchSelector(Selectable< 2 > &selectable, const Callback &callback, const AH::Button &button)
void begin() override
Initialize this updatable.
#define BEGIN_CS_NAMESPACE
void update() override
Update this updatable.
Selector that selects one of two settings, based on the state of a toggle or momentary switch.
SwitchSelector(Selectable< 2 > &selectable, const AH::Button &button)
void set(setting_t newSetting)
Select the given selection.
Selectable< N > & selectable
AH::Button::State getButtonState() const