126template <setting_t N>
150template <setting_t N>
178template <setting_t N>
constexpr PinStatus_t LOW
constexpr PinStatus_t HIGH
constexpr PinMode_t OUTPUT
uint8_t setting_t
The type used for Selectors.
Wrap
An enumeration to set the behavior of selectors that are incremented (decremented) beyond their maxim...
@ Wrap
When the maximum (minimum) setting is reached, wrap around to the minimum (maximum) setting.
#define BEGIN_CS_NAMESPACE
EncoderSelectorLEDs(Selectable< N > &selectable, const EncoderSwitchPinList &pins, const PinList< N > &ledPins, int8_t pulsesPerStep=4, Wrap wrap=Wrap::Wrap)
GenericEncoderSelector(Selectable< N > &selectable, const SelectorLEDsCallback< N > &callback, const EncoderSwitchPinList &pins, int8_t pulsesPerStep=4, Wrap wrap=Wrap::Wrap)
AH::IncrementDecrementButtons buttons
GenericIncrementDecrementSelector(Selectable< N > &selectable, const SelectorLEDsCallback< N > &callback, const AH::IncrementDecrementButtons &buttons, Wrap wrap=Wrap::Wrap)
AH::IncrementButton button
GenericIncrementSelector(Selectable< N > &selectable, const SelectorLEDsCallback< N > &callback, const AH::IncrementButton &button)
GenericProgramChangeSelector(Selectable< N > &selectable, const SelectorLEDsCallback< N > &callback, MIDIChannelCable address)
Selectable< N > & selectable
GenericSwitchSelector(Selectable< 2 > &selectable, const SelectorSingleLEDCallback &callback, const AH::Button &button)
IncrementDecrementSelectorLEDs(Selectable< N > &selectable, const AH::IncrementDecrementButtons &buttons, const PinList< N > &ledPins, Wrap wrap=Wrap::Wrap)
IncrementSelectorLEDs(Selectable< N > &selectable, const AH::Button &button, const PinList< N > &ledPins)
A class for saving a MIDI channel and cable number.
ProgramChangeSelectorLEDs(Selectable< N > &selectable, MIDIChannelCable address, const PinList< N > &ledPins)
void update(setting_t oldSetting, setting_t newSetting)
Called when the setting changes.
void update()
Refresh, called periodically.
SelectorLEDsCallback(const PinList< N > &ledPins)
SelectorSingleLEDCallback(pin_t ledPin)
void update(setting_t oldSetting, setting_t newSetting)
Called when the setting changes.
void update()
Refresh, called periodically.
SwitchSelectorLED(Selectable< 2 > &selectable, const AH::Button &button, pin_t ledPin)
void pinMode(pin_t pin, PinMode_t mode)
An ExtIO version of the Arduino function.
void digitalWrite(pin_t pin, PinStatus_t val)
An ExtIO version of the Arduino function.
Array< pin_t, N > PinList
An easy alias for arrays of pins.
Type for storing pin numbers of Extended Input/Output elements.
A struct for the pins of a rotary (quadrature) encoder with a switch.