#include <MIDI_Inputs/MCU/SevenSegmentDisplay.hpp>
Public Member Functions | |
SevenSegmentDisplay (const MIDIAddress &address) | |
Constructor. More... | |
void | fillWithSpaces () |
void | reset () override |
Reset the input element to its initial state. More... | |
void | getText (char *buffer, uint8_t offset=0, uint8_t length=LENGTH) const |
Copy the ASCII text into the given buffer. More... | |
char | getCharacterAt (uint8_t index) const |
Get the character at the given index. More... | |
void | getDecimalPoints (bool *buffer) const |
Copy the decimal points into the given buffer. More... | |
bool | getDecimalPointAt (uint8_t index) const |
Get the decimal point state at the given index. More... | |
size_t | printTo (Print &printer) const override |
Print out the text of the display to the given Print. More... | |
virtual void | begin () |
Initialize the input element. More... | |
virtual void | update () |
Update the value of the input element. Used for decaying VU meters etc. More... | |
bool | updateWith (const ChannelMessageMatcher &midimsg) |
Receive a new MIDI message and update the internal state. More... | |
Static Public Member Functions | |
static void | beginAll () |
Initialize all MIDIInputElementCC elements. More... | |
static void | updateAll () |
Update all MIDIInputElementCC elements. More... | |
static void | resetAll () |
Reset all MIDIInputElementCC elements to their initial state. More... | |
static void | updateAllWith (const ChannelMessageMatcher &midimsg) |
Update all MIDIInputElementCC elements with a new MIDI message. More... | |
Protected Attributes | |
const MIDIAddress | address |
MIDIInputElementCC * | next |
MIDIInputElementCC * | previous |
Private Member Functions | |
virtual bool | updateImpl (const ChannelMessageMatcher &midimsg, const MIDIAddress &target) override |
Update a character. More... | |
bool | match (const MIDIAddress &target) const override |
Check if the address of the incoming MIDI message is within the range of addresses of this element. More... | |
uint8_t | getRangeIndex (const MIDIAddress &target) const |
void | moveDown () |
Move down this element in the linked list of elements. More... | |
virtual MIDIAddress | getTarget (const ChannelMessageMatcher &midimsg) const |
Extract the target address from a MIDI message. More... | |
Private Attributes | |
char | text [LENGTH] |
Static Private Attributes | |
static DoublyLinkedList< MIDIInputElementCC > | elements |
Definition at line 12 of file SevenSegmentDisplay.hpp.
|
inline |
|
inline |
Definition at line 23 of file SevenSegmentDisplay.hpp.
|
inlineoverridevirtual |
Reset the input element to its initial state.
Reimplemented from MIDIInputElement.
Definition at line 28 of file SevenSegmentDisplay.hpp.
|
inlineoverrideprivatevirtual |
Update a character.
Implements MIDIInputElement.
Definition at line 38 of file SevenSegmentDisplay.hpp.
|
inlineoverrideprivatevirtual |
Check if the address of the incoming MIDI message is within the range of addresses of this element.
Reimplemented from MIDIInputElement.
Definition at line 54 of file SevenSegmentDisplay.hpp.
|
inlineprivate |
Definition at line 60 of file SevenSegmentDisplay.hpp.
|
inline |
Copy the ASCII text into the given buffer.
[out] | buffer | The destination to write the text to. Will be null-terminated. Should have a size of at least length +1 bytes. |
[in] | offset | The offset to start copying from (in the source text, the offset in the destination buffer is always zero). |
[in] | length | The number of characters to copy. |
Definition at line 78 of file SevenSegmentDisplay.hpp.
|
inline |
Get the character at the given index.
Definition at line 93 of file SevenSegmentDisplay.hpp.
|
inline |
Copy the decimal points into the given buffer.
[out] | buffer | The destination to write the decimal points to. Should have a size of at least LENGTH bytes. |
Definition at line 102 of file SevenSegmentDisplay.hpp.
|
inline |
Get the decimal point state at the given index.
Definition at line 111 of file SevenSegmentDisplay.hpp.
|
inlineoverride |
Print out the text of the display to the given Print.
Definition at line 116 of file SevenSegmentDisplay.hpp.
|
inlinestaticinherited |
Initialize all MIDIInputElementCC elements.
Definition at line 52 of file MIDIInputElementCC.hpp.
|
inlinestaticinherited |
Update all MIDIInputElementCC elements.
Definition at line 60 of file MIDIInputElementCC.hpp.
|
inlinestaticinherited |
Reset all MIDIInputElementCC elements to their initial state.
Definition at line 68 of file MIDIInputElementCC.hpp.
|
inlinestaticinherited |
Update all MIDIInputElementCC elements with a new MIDI message.
Definition at line 76 of file MIDIInputElementCC.hpp.
|
inlineprivateinherited |
Move down this element in the linked list of elements.
This means that the element will be checked earlier on the next iteration.
Definition at line 94 of file MIDIInputElementCC.hpp.
|
inlinevirtualinherited |
Initialize the input element.
Reimplemented in GenericProgramChangeSelector< N, Callback >, GenericProgramChangeSelector< N >, GenericProgramChangeSelector< N, SelectorLEDsCallback< N > >, NoteCCRange< MIDIInputElementNote, RangeLen, NumBanks, NoteCCLEDPWM< RangeLen > >, NoteCCRange< MIDIInputElementNote, RangeLen, 1, NoteCCLEDPWM< 1 > >, NoteCCRange< MIDIInputElementCC, RangeLen, NumBanks, NoteCCLEDBarCallback< NumLEDs > >, NoteCCRange< MIDIInputElementNote, RangeLen, 1, NoteCCLEDPWM< RangeLen > >, NoteCCRange< MIDIInputElementNote, RangeLen, 1, NoteCCLED< RangeLen > >, NoteCCRange< MIDIInputElementCC, RangeLen, 1, NoteCCLED< 1 > >, NoteCCRange< MIDIInputElementCC, RangeLen, NumBanks, NoteCCLED< 1 > >, NoteCCRange< MIDIInputElementCC, RangeLen, NumBanks, NoteCCLEDPWM< RangeLen > >, NoteCCRange< MIDIInputElementNote, RangeLen, NumBanks, NoteCCLED< 1 > >, NoteCCRange< MIDIInputElementCC, RangeLen, 1, NoteCCLEDBarCallback< NumLEDs > >, NoteCCRange< MIDIInputElementNote, RangeLen, NumBanks, NoteCCLED< RangeLen > >, NoteCCRange< MIDIInputElementCC, RangeLen, 1, NoteCCLED< RangeLen > >, NoteCCRange< MIDIInputElementNote, RangeLen, NumBanks, NoteCCLEDBarCallback< NumLEDs > >, NoteCCRange< MIDIInputElementNote, RangeLen, 1, NoteCCFastLEDCallback< DefaultColorMapper > >, NoteCCRange< MIDIInputElementCC, RangeLen, NumBanks, NoteCCFastLEDCallback< DefaultColorMapper > >, NoteCCRange< MIDIInputElementCC, RangeLen, NumBanks, NoteCCLEDPWM< 1 > >, NoteCCRange< MIDIInputElementCC, RangeLen, 1, NoteCCFastLEDCallback< DefaultColorMapper > >, NoteCCRange< MIDIInputElementNote, RangeLen, NumBanks, NoteCCLEDPWM< 1 > >, NoteCCRange< MIDIInputElementNote, RangeLen, 1, NoteCCLEDBarCallback< NumLEDs > >, NoteCCRange< MIDIInputElementCC, RangeLen, 1, NoteCCLEDPWM< RangeLen > >, NoteCCRange< MIDIInputElementCC, RangeLen, 1, NoteCCLEDPWM< 1 > >, NoteCCRange< MIDIInputElementCC, RangeLen, NumBanks, NoteCCLED< RangeLen > >, NoteCCRange< MIDIInputElementNote, RangeLen, 1, NoteCCLED< 1 > >, NoteCCRange< MIDIInputElementNote, RangeLen, NumBanks, NoteCCFastLEDCallback< DefaultColorMapper > >, VU_Base< NumValues, Callback >, VU_Base< NumBanks, VULEDsCallback< NumLEDs > >, VU_Base< NumBanks, VUEmptyCallback >, VU_Base< 1, VUEmptyCallback >, VU_Base< 1, VULEDsCallback< NumLEDs > >, VPotRing_Base< NumValues, Callback >, VPotRing_Base< 1, VPotRingLEDsCallback >, VPotRing_Base< NumBanks, VPotEmptyCallback >, VPotRing_Base< 1, VPotEmptyCallback >, and VPotRing_Base< NumBanks, VPotRingLEDsCallback >.
Definition at line 30 of file MIDIInputElement.hpp.
|
inlinevirtualinherited |
Update the value of the input element. Used for decaying VU meters etc.
Reimplemented in VU_Base< NumValues, Callback >, VU_Base< NumBanks, VULEDsCallback< NumLEDs > >, VU_Base< NumBanks, VUEmptyCallback >, VU_Base< 1, VUEmptyCallback >, and VU_Base< 1, VULEDsCallback< NumLEDs > >.
Definition at line 36 of file MIDIInputElement.hpp.
|
inlineinherited |
Receive a new MIDI message and update the internal state.
Definition at line 39 of file MIDIInputElement.hpp.
|
inlineprivatevirtualinherited |
Extract the target address from a MIDI message.
Reimplemented in MIDIInputElementPC, MIDIInputElementChannelPressure, VU_Base< NumValues, Callback >, VU_Base< NumBanks, VULEDsCallback< NumLEDs > >, VU_Base< NumBanks, VUEmptyCallback >, VU_Base< 1, VUEmptyCallback >, and VU_Base< 1, VULEDsCallback< NumLEDs > >.
Definition at line 63 of file MIDIInputElement.hpp.
|
private |
Definition at line 127 of file SevenSegmentDisplay.hpp.
|
staticprivateinherited |
Definition at line 99 of file MIDIInputElementCC.hpp.
|
protectedinherited |
Definition at line 83 of file MIDIInputElement.hpp.
|
protectedinherited |
Definition at line 323 of file LinkedList.hpp.
|
protectedinherited |
Definition at line 324 of file LinkedList.hpp.