This is an old version of the documentation. View the latest version
here.
Control Surface
1.0.0
MIDI Control Surface library for Arduino
|
Go to the documentation of this file.
60 #if defined(Encoder_h_) || defined(IDE)
71 template <setting_t N>
99 template <setting_t N>
129 template <setting_t N>
157 template <setting_t N>
185 template <setting_t N>
Selectable< N > & selectable
void update()
Refresh, called periodically.
void pinMode(pin_t pin, uint8_t mode)
An ExtIO version of the Arduino function.
uint16_t pin_t
The type for Arduino pins (and ExtendedIOElement pins).
IncrementDecrementButtons buttons
EncoderSelectorLEDs(Selectable< N > &selectable, const EncoderSwitchPinList &pins, const PinList< N > &ledPins, int8_t pulsesPerStep=4, Wrap wrap=Wrap::Wrap)
SelectorSingleLEDCallback(pin_t ledPin)
An array wrapper for easy copying, comparing, and iterating.
Selector with two buttons (one to increment, one to decrement). This version displays the setting usi...
void update()
Refresh, called periodically.
void update(setting_t oldSetting, setting_t newSetting)
Called when the setting changes.
#define BEGIN_CS_NAMESPACE
void digitalWrite(pin_t pin, uint8_t val)
An ExtIO version of the Arduino function.
Wrap
An enumeration to set the behavior of selectors that are incremented (decremented) beyond their maxim...
void update(setting_t oldSetting, setting_t newSetting)
Called when the setting changes.
IncrementDecrementSelectorLEDs(Selectable< N > &selectable, const IncrementDecrementButtons &buttons, const PinList< N > &ledPins, Wrap wrap=Wrap::Wrap)
A class for saving a MIDI channel and cable number.
Selector that selects one of two settings, based on the state of a toggle or momentary switch....
SelectorLEDsCallback(const PinList< N > &ledPins)
uint8_t setting_t
The type used for Selectors.
When the maximum (minimum) setting is reached, wrap around to the minimum (maximum) setting.
Selector that reads from a rotary encoder. This version displays the setting using LEDs.
ProgramChangeSelectorLEDs(Selectable< N > &selectable, const MIDICNChannel &address, const PinList< N > &ledPins)
Selector that listens for MIDI Program Change events on a given MIDI Channel, and uses the program nu...
SwitchSelectorLED(Selectable< 2 > &selectable, const Button &button, pin_t ledPin)
IncrementSelectorLEDs(Selectable< N > &selectable, const Button &button, const PinList< N > &ledPins, Wrap wrap=Wrap::Wrap)
Selector with one button that increments the selection. This version displays the setting using LEDs.
A struct for the pins of a rotary (quadrature) encoder with a switch.