102 const PinList<N> &ledPins,
126template <setting_t N>
131 const PinList<N> &ledPins)
150template <setting_t N>
155 const PinList<N> &buttonPins,
156 const PinList<N> &ledPins)
178template <setting_t N>
184 const PinList<N> &ledPins)
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
Selector that reads from a rotary encoder. This version displays the setting using LEDs.
EncoderSelectorLEDs(Selectable< N > &selectable, const EncoderSwitchPinList &pins, const PinList< N > &ledPins, int8_t pulsesPerStep=4, Wrap wrap=Wrap::Wrap)
AH::IncrementDecrementButtons buttons
AH::IncrementButton button
Selectable< N > & selectable
Selector with two buttons (one to increment, one to decrement). This version displays the setting u...
IncrementDecrementSelectorLEDs(Selectable< N > &selectable, const AH::IncrementDecrementButtons &buttons, const PinList< N > &ledPins, Wrap wrap=Wrap::Wrap)
Selector with one button that increments the selection. This version displays the setting using LED...
IncrementSelectorLEDs(Selectable< N > &selectable, const AH::Button &button, const PinList< N > &ledPins)
A class for saving a MIDI channel and cable number.
Selector that listens for MIDI Program Change events on a given MIDI Channel, and uses the program nu...
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.
Selector that selects one of two settings, based on the state of a toggle or momentary switch....
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.
Type for storing pin numbers of Extended Input/Output elements.
A struct for the pins of a rotary (quadrature) encoder with a switch.