21template <MIDIMessageType Type, u
int8_t RangeLen>
69template <u
int8_t RangeLen>
75template <u
int8_t RangeLen>
81template <u
int8_t RangeLen>
102template <MIDIMessageType Type, u
int8_t BankSize, u
int8_t RangeLen>
123 this->
dirty |= newdirty;
157 for (uint8_t index = 0; index < RangeLen; ++index)
170template <u
int8_t BankSize, u
int8_t RangeLen>
178template <u
int8_t BankSize, u
int8_t RangeLen>
186template <u
int8_t BankSize, u
int8_t RangeLen>
constexpr PinStatus_t LOW
AH::function_traits< decltype(::digitalWrite)>::argument_t< 1 > PinStatus_t
constexpr PinStatus_t HIGH
constexpr PinMode_t OUTPUT
#define BEGIN_CS_NAMESPACE
A class for serial-in/parallel-out shift registers, like the 74HC595 that are connected to the SPI bu...
Generic base class for classes that listen for MIDI Note, Control Change and Key Pressure events on a...
void setThreshold(uint8_t threshold)
Set the LED threshold. LED will be on if getValue() >= getThreshold().
void onBankSettingChange() override
A function to be executed each time the bank setting changes.
void display(uint8_t index)
void begin() override
Set the pinmode of the LEDs to OUTPUT.
NoteCCKPRangeLEDs(BankConfig< BankSize > config, AH::PinList< RangeLen > ledPins, MIDIAddress address)
AH::PinList< RangeLen > ledPins
void handleUpdate(typename Matcher::Result match) override
typename Parent::Matcher Matcher
uint8_t getThreshold() const
Get the LED threshold.
void reset() override
Reset all values to zero and turn off the LEDs.
Generic base class for classes that listen for MIDI Note, Control Change and Key Pressure events on a...
BankableTwoByteRangeMIDIMatcher< BankSize > Matcher
uint8_t getValue(uint8_t index) const
Get the most recent MIDI value that was received for the active bank.
void onBankSettingChange() override
A function to be executed each time the bank setting changes.
bool handleUpdateImpl(typename Matcher::Result match)
void reset() override
Reset all values to zero.
A type-safe utility class for saving a MIDI address consisting of a 7-bit address,...
Generic base class for classes that listen for MIDI Note, Control Change and Key Pressure events on a...
void setThreshold(uint8_t threshold)
Set the LED threshold. LED will be on if getValue() >= getThreshold().
NoteCCKPRangeLEDs(AH::PinList< RangeLen > ledPins, MIDIAddress address)
void begin() override
Set the pinmode of the LEDs to OUTPUT.
AH::PinList< RangeLen > ledPins
void handleUpdate(typename Matcher::Result match) override
uint8_t getThreshold() const
Get the LED threshold.
void reset() override
Turn off the LEDs.
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.
A namespace for MIDI elements that can be added to a Bank, to change their address or channel.
Type for storing pin numbers of Extended Input/Output elements.
Matcher for MIDI messages with 2 data bytes, such as Note On/Off, Control Change, Key Pressure (but n...