25 void update(
float channel1Power,
float channel2Power)
override;
TFTColor
A color used for drawing on a TFT display.
Definition TFT.h:14
@ White
Definition TFT.h:16
@ Black
Definition TFT.h:15
An interface for displaying important values related to the system.
Definition IDisplay.h:13
void update(float channel1Power, float channel2Power) override
Update the display with all relevant values.
Definition TFTDisplay.cpp:27
Layout m_layout
Definition TFTDisplay.h:53
static constexpr TFTColor TEXT_COLOR
The default color for drawing text.
Definition TFTDisplay.h:36
char m_text_staging[128]
Definition TFTDisplay.h:52
TFTDriver & m_driver
Definition TFTDisplay.h:51
void initialize() override
Initialize the display.
Definition TFTDisplay.cpp:7
TFTDisplay(TFTDriver &driver)
Creates a TFT display for a specific TFT driver.
Definition TFTDisplay.cpp:5
static constexpr TFTColor CLEAR_COLOR
The color used for clearing the screen.
Definition TFTDisplay.h:31
void determineLayout()
Pre-computes the positions of UI elements.
Definition TFTDisplay.cpp:17
A low-level interface to a TFT display.
Definition TFTDriver.h:13
The positions of UI elements.
Definition TFTDisplay.h:41
TFTPoint wire2Text
The top-left of the second line of text.
Definition TFTDisplay.h:43
TFTPoint wire1Text
The top-left of the first line of text.
Definition TFTDisplay.h:42
The position of a pixel on a TFT display, given in Cartesian coordinates.
Definition TFT.h:27