3#include <AH/STL/algorithm>
18template <u
int8_t LENGTH>
21 TwoByteRangeMIDIMatcher>,
77 if (length >
LENGTH - offset)
81 buffer[length] =
'\0';
#define BEGIN_CS_NAMESPACE
Class that receives and saves the text of a Mackie Control Universal 7-segment display like the assig...
void getDecimalPoints(bool *buffer) const
Copy the decimal points into the given buffer.
bool getDecimalPointAt(uint8_t index) const
Get the decimal point state at the given index.
bool ignoreReset
Don't reset the state when calling the reset method.
SevenSegmentDisplay(MIDIAddress address)
bool getDirty() const
Check if the value was updated since the last time the dirty flag was cleared.
char getCharacterAt(uint8_t index) const
Get the character at the given index.
void getText(char *buffer, uint8_t offset=0, uint8_t length=LENGTH) const
Copy the ASCII text into the given buffer.
size_t printTo(Print &printer) const override
Print out the text of the display to the given Print.
AH::Array< char, LENGTH > text
Non-ASCII and not null-terminated.
void handleUpdate(typename Matcher::Result match) override
Update a single character.
void reset() override
Reset the input element to its initial state.
void clearDirty()
Clear the dirty flag.
A type-safe utility class for saving a MIDI address consisting of a 7-bit address,...
An array wrapper for easy copying, comparing, and iterating.
Matcher for MIDI messages with 2 data bytes, such as Note On/Off, Control Change, Key Pressure (but n...