26 char barStr[6], beatStr[3], frameStr[4];
40 int16_t
getX()
const {
return x; }
41 int16_t
getY()
const {
return y; }
45 void setX(int16_t
x) { this->x =
x; }
46 void setY(int16_t
y) { this->y =
y; }
#define BEGIN_CS_NAMESPACE
An interface for elements that draw to a display.
DisplayInterface & display
An interface for displays.
virtual void setTextColor(uint16_t color)=0
Set the text color.
virtual void setCursor(int16_t x, int16_t y)=0
Set the cursor position.
virtual void setTextSize(uint8_t size)=0
Set the text size.
bool getDirty() const
Check if the value was updated since the last time the dirty flag was cleared.
void clearDirty()
Clear the dirty flag.
Displays the MCU time code display.
bool getDirty() const override
Check if this DisplayElement has to be re-drawn.
TimeDisplay & timedisplay
void setSize(uint8_t size)
uint16_t getColor() const
TimeDisplayDisplay(DisplayInterface &display, TimeDisplay &timedisplay, PixelLocation loc, uint8_t size, uint16_t color)
void setColor(uint16_t color)
void draw() override
Draw this DisplayElement to the display buffer.
Class that receives and stores the text of the Mackie Control Universal 7-segment time display.
void getBars(char *buff) const
void getBeats(char *buff) const
void getFrames(char *buff) const
A simple struct representing a pixel with integer coordinates.