An implementation of IDisplay for TFT color displays.
More...
#include <TFTDisplay.h>
|
| | TFTDisplay (TFTDriver &driver) |
| | Creates a TFT display for a specific TFT driver.
|
| void | initialize () override |
| | Initialize the display.
|
| void | update (float channel1Power, float channel2Power) override |
| | Update the display with all relevant values.
|
| virtual | ~IDisplay ()=default |
An implementation of IDisplay for TFT color displays.
◆ TFTDisplay()
Creates a TFT display for a specific TFT driver.
- Parameters
-
| driver | The underlying driver. |
◆ determineLayout()
| void TFTDisplay::determineLayout |
( |
| ) |
|
|
private |
Pre-computes the positions of UI elements.
◆ initialize()
| void TFTDisplay::initialize |
( |
| ) |
|
|
overridevirtual |
Initialize the display.
In general, must be called before any calls to update.
Implements IDisplay.
◆ update()
| void TFTDisplay::update |
( |
float | channel1Power, |
|
|
float | channel2Power ) |
|
overridevirtual |
Update the display with all relevant values.
- Parameters
-
| channel1Power | The output duty cycle for channel 1 (between 0 and 1) |
| channel2Power | The output duty cycle for channel 2 (between 0 and 1) |
Implements IDisplay.
◆ CLEAR_COLOR
The color used for clearing the screen.
◆ m_driver
◆ m_layout
◆ m_text_staging
| char TFTDisplay::m_text_staging[128] |
|
private |
◆ TEXT_COLOR
The default color for drawing text.
The documentation for this class was generated from the following files: