19template <MIDIMessageType Type>
91template <MIDIMessageType Type, u
int8_t BankSize>
111 this->
dirty |= newdirty;
154template <u
int8_t BankSize>
161template <u
int8_t BankSize>
168template <u
int8_t BankSize>
171template <u
int8_t BankSize>
173template <u
int8_t BankSize>
constexpr PinStatus_t LOW
constexpr PinStatus_t HIGH
AH::function_traits< decltype(::digitalWrite)>::argument_t< 1 > PinStatus_t
constexpr PinMode_t OUTPUT
#define BEGIN_CS_NAMESPACE
Generic base class for classes that listen for MIDI Note, Control Change and Key Pressure events on a...
NoteCCKPValue< Type, BankSize > Parent
void setThreshold(uint8_t threshold)
void onBankSettingChange() override
uint8_t getValue() const override
Get the most recent MIDI value that was received for the active bank.
void handleUpdate(typename Matcher::Result match) override
typename Parent::Matcher Matcher
NoteCCKPLED(BankConfig< BankSize > config, pin_t ledPin, MIDIAddress address)
uint8_t getThreshold() const
void onBankSettingChange() override
A function to be executed each time the bank setting changes.
bool handleUpdateImpl(typename Matcher::Result match)
BankableTwoByteMIDIMatcher< BankSize > Matcher
NoteCCKPValue(BankConfig< BankSize > config, MIDIAddress address)
uint8_t getValue() const override
Get the most recent MIDI value that was received for the active bank.
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...
NoteCCKPLED(pin_t ledPin, MIDIAddress address)
void setThreshold(uint8_t threshold)
Set the LED threshold. LED will be on if getValue() >= getThreshold().
MatchingMIDIInputElement< Type, Matcher > Parent
void begin() override
Set the pinmode of the LED to OUTPUT.
TwoByteMIDIMatcher Matcher
void handleUpdate(typename Matcher::Result match) override
uint8_t getThreshold() const
Get the LED threshold.
void reset() override
Turn off the LED.
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.
CCLED< BankSize > CCValueLED
NoteLED< BankSize > NoteValueLED
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...