Lamp-Da 0.1
A compact lantern project
Loading...
Searching...
No Matches
Static Public Member Functions | Static Public Attributes | List of all members
lampda::modes::draw::text::TextDisplay Struct Reference

Static Public Member Functions

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.
 

Static Public Attributes

static constexpr uint16_t nbLines = LampTy::maxHeight
 

Member Function Documentation

◆ 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]textText to display
[in]colorCallbackuser defined callback for
[in]startXIndexStart X coordinate of the text
[in]startYIndexStart Y coordinate of the text
[in]scaleScale of the text to display, between 0 and 1
[in]paddEndIf 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: