|
| static bool | display (LampTy &lamp, const std::string &text, const std::function< uint32_t(char)> &colorCallback, const int16_t startXIndex=0, const int16_t startYIndex=0, float scale=0.2, const bool paddEnd=false) |
| | Display a given text string to the led.
|
| |
◆ display()
| static bool lampda::modes::draw::text::TextDisplay::display |
( |
LampTy & |
lamp, |
|
|
const std::string & |
text, |
|
|
const std::function< uint32_t(char)> & |
colorCallback, |
|
|
const int16_t |
startXIndex = 0, |
|
|
const int16_t |
startYIndex = 0, |
|
|
float |
scale = 0.2, |
|
|
const bool |
paddEnd = false |
|
) |
| |
|
inlinestatic |
Display a given text string to the led.
- Parameters
-
| [in] | lamp | |
| [in] | text | Text to display |
| [in] | colorCallback | user defined callback for |
| [in] | startXIndex | Start X coordinate of the text |
| [in] | startYIndex | Start Y coordinate of the text |
| [in] | scale | Scale of the text to display, between 0 and 1 |
| [in] | paddEnd | If true, this function will consider that the text is displayed when the last letter disappears |
- Returns
- True when the text is fully displayed
The documentation for this struct was generated from the following file: