#include <Display/MCU/LCDDisplay.hpp>
Displays the text of the Mackie Control Universal LCD screen for a single track.
Often used for track names.
- Examples
- MCU-OLED-SSD1306-x2.ino.
Definition at line 18 of file LCDDisplay.hpp.
|
void | enable () |
| Enable this display element: insert it into the linked list of instances, so it gets drawn to the display.
|
|
void | disable () |
| Disable this display element: remove it from the linked list of instances, so it no longer gets drawn to the display.
|
|
bool | isEnabled () const |
| Check if this display element is enabled.
|
|
static void | enable (DisplayElement *element) |
| Enable this display element: insert it into the linked list of instances, so it gets drawn to the display.
|
|
static void | enable (DisplayElement &element) |
| Enable this display element: insert it into the linked list of instances, so it gets drawn to the display.
|
|
template<class U , size_t N> |
static void | enable (U(&array)[N]) |
| Enable this display element: insert it into the linked list of instances, so it gets drawn to the display.
|
|
static void | disable (DisplayElement *element) |
| Disable this display element: remove it from the linked list of instances, so it no longer gets drawn to the display.
|
|
static void | disable (DisplayElement &element) |
| Disable this display element: remove it from the linked list of instances, so it no longer gets drawn to the display.
|
|
template<class U , size_t N> |
static void | disable (U(&array)[N]) |
| Disable this display element: remove it from the linked list of instances, so it no longer gets drawn to the display.
|
|
|
| LCDDisplay (DisplayInterface &display, LCD<> &lcd, const OutputBank &bank, uint8_t track, PixelLocation loc, uint8_t textSize, uint16_t color) |
| Constructor.
|
|
| LCDDisplay (DisplayInterface &display, LCD<> &lcd, const OutputBank &bank, uint8_t track, uint8_t line, PixelLocation loc, uint8_t textSize, uint16_t color) |
| Constructor.
|
|
| LCDDisplay (DisplayInterface &display, LCD<> &lcd, uint8_t track, PixelLocation loc, uint8_t textSize, uint16_t color) |
| Constructor.
|
|
| LCDDisplay (DisplayInterface &display, LCD<> &lcd, uint8_t track, uint8_t line, PixelLocation loc, uint8_t textSize, uint16_t color) |
| Constructor.
|
|
| LCDDisplay (const LCDDisplay &)=delete |
|
| ~LCDDisplay () |
|
void | draw () override |
| Draw this DisplayElement to the display buffer.
|
|
bool | getDirty () const override |
| Check if this DisplayElement has to be re-drawn.
|
|
bool | separateTracks () const |
| Check if the display contains a message for each track separately.
|
|
void | setLine (uint8_t line) |
| Set the line number of the LCD to display.
|
|
DisplayInterface & | getDisplay () |
| Get a reference to the display that this element draws to.
|
|
const DisplayInterface & | getDisplay () const |
| Get a const reference to the display that this element draws to.
|
|
◆ LCDDisplay() [1/5]
Constructor.
- Parameters
-
display | A reference to the display that this element will be drawn to. |
lcd | A reference to the MCU LCD MIDI input element that listens for incoming MIDI display data. |
bank | The bank that determines the active track to be displayed. |
track | The track number to display [1, 8]. |
loc | The location on the display where to start drawing the text. |
textSize | The font size to use for drawing the text. |
color | The color of the text to draw. |
Definition at line 39 of file LCDDisplay.hpp.
◆ LCDDisplay() [2/5]
Constructor.
- Parameters
-
display | A reference to the display that this element will be drawn to. |
lcd | A reference to the MCU LCD MIDI input element that listens for incoming MIDI display data. |
bank | The bank that determines the active track to be displayed. |
track | The track number to display [1, 8]. |
line | The line of the MCU display to display [1, 2]. |
loc | The location on the display where to start drawing the text. |
textSize | The font size to use for drawing the text. |
color | The color of the text to draw. |
Definition at line 68 of file LCDDisplay.hpp.
◆ LCDDisplay() [3/5]
Constructor.
- Parameters
-
display | A reference to the display that this element will be drawn to. |
lcd | A reference to the MCU LCD MIDI input element that listens for incoming MIDI display data. |
track | The track number to display [1, 8]. |
loc | The location on the display where to start drawing the text. |
textSize | The font size to use for drawing the text. |
color | The color of the text to draw. |
Definition at line 93 of file LCDDisplay.hpp.
◆ LCDDisplay() [4/5]
Constructor.
- Parameters
-
display | A reference to the display that this element will be drawn to. |
lcd | A reference to the MCU LCD MIDI input element that listens for incoming MIDI display data. |
track | The track number to display [1, 8]. |
line | The line of the MCU display to display [1, 2]. |
loc | The location on the display where to start drawing the text. |
textSize | The font size to use for drawing the text. |
color | The color of the text to draw. |
Definition at line 119 of file LCDDisplay.hpp.
◆ LCDDisplay() [5/5]
◆ ~LCDDisplay()
◆ draw()
◆ getDirty()
◆ separateTracks()
bool separateTracks |
( |
| ) |
const |
|
inline |
Check if the display contains a message for each track separately.
On the original Mackie Control surfaces, the LCD display consists of two 56-character lines, where each of the 8 channels has 7 characters. If the LCD is used to display a message for each channel separately, the seventh character of each channel is always a space, as separation between the channels.
- Return values
-
true | The display contains a message for each track separately, and the messages are separated by spaces. |
false | The display contains a message that spans across multiple tracks, without separating spaces between the tracks. |
Definition at line 173 of file LCDDisplay.hpp.
◆ setLine()
void setLine |
( |
uint8_t | line | ) |
|
|
inline |
Set the line number of the LCD to display.
- Parameters
-
Definition at line 185 of file LCDDisplay.hpp.
◆ enable() [1/4]
Enable this display element: insert it into the linked list of instances, so it gets drawn to the display.
Definition at line 35 of file DisplayElement.hpp.
◆ enable() [2/4]
|
inlinestaticprotectedinherited |
Enable this display element: insert it into the linked list of instances, so it gets drawn to the display.
Definition at line 62 of file DisplayElement.hpp.
◆ enable() [3/4]
|
inlinestaticprotectedinherited |
Enable this display element: insert it into the linked list of instances, so it gets drawn to the display.
Definition at line 64 of file DisplayElement.hpp.
◆ enable() [4/4]
template<class U , size_t N>
static void enable |
( |
U(&) | array[N] | ) |
|
|
inlinestaticprotectedinherited |
Enable this display element: insert it into the linked list of instances, so it gets drawn to the display.
Definition at line 67 of file DisplayElement.hpp.
◆ disable() [1/4]
Disable this display element: remove it from the linked list of instances, so it no longer gets drawn to the display.
Definition at line 45 of file DisplayElement.hpp.
◆ disable() [2/4]
|
inlinestaticprotectedinherited |
Disable this display element: remove it from the linked list of instances, so it no longer gets drawn to the display.
Definition at line 73 of file DisplayElement.hpp.
◆ disable() [3/4]
|
inlinestaticprotectedinherited |
Disable this display element: remove it from the linked list of instances, so it no longer gets drawn to the display.
Definition at line 75 of file DisplayElement.hpp.
◆ disable() [4/4]
template<class U , size_t N>
static void disable |
( |
U(&) | array[N] | ) |
|
|
inlinestaticprotectedinherited |
Disable this display element: remove it from the linked list of instances, so it no longer gets drawn to the display.
Definition at line 78 of file DisplayElement.hpp.
◆ isEnabled()
Check if this display element is enabled.
- Note
- Assumes that the element is not added to a different linked list by the user.
Definition at line 59 of file DisplayElement.hpp.
◆ getDisplay() [1/2]
Get a reference to the display that this element draws to.
Definition at line 95 of file DisplayElement.hpp.
◆ getDisplay() [2/2]
Get a const reference to the display that this element draws to.
Definition at line 97 of file DisplayElement.hpp.
◆ getAll()
◆ lcd
◆ bank
◆ track
◆ line
◆ size
◆ color
◆ display
◆ elements
◆ next
◆ previous
The documentation for this class was generated from the following file: