MIDI Control Surface library for Arduino
|
Go to the documentation of this file.
9 #include <Settings/NamespaceSettings.hpp>
26 template <u
int8_t nb_rows, u
int8_t nb_cols>
EncoderSwitchPinList(uint8_t A, uint8_t B)
pin_t switchPin
The pin connected to the switch pin of the encoder.
uint8_t A
The pin connected to the A pin of the encoder.
uint16_t pin_t
The type for Arduino pins (and ExtendedIOElement pins).
uint8_t A
The pin connected to the A pin of the encoder.
uint8_t B
The pin connected to the B pin of the encoder.
#define BEGIN_CS_NAMESPACE
EncoderSwitchPinList(uint8_t A, uint8_t B, pin_t switchPin)
An array wrapper for easy copying, comparing, and iterating.
Array< Array< T, nb_cols >, nb_rows > Array2D
An easy alias for two-dimensional Arrays.
constexpr setting_t NO_SETTING
A special setting that indicates an unused or invalid setting.
A struct for the pins of a rotary (quadrature) encoder without a switch.
constexpr pin_t NO_PIN
A special pin number that indicates an unused or invalid pin.
uint16_t analog_t
The type returned from analogRead and similar functions.
Array2D< uint8_t, nb_rows, nb_cols > AddressMatrix
A simple struct representing a pixel with integer coordinates.
Array< pin_t, N > PinList
An easy alias for arrays of pins.
uint8_t setting_t
The type used for Selectors.
analog_t(*)(analog_t) MappingFunction
uint8_t B
The pin connected to the B pin of the encoder.
A struct for the pins of a rotary (quadrature) encoder with a switch.