Skip to main content

Text

Draw Text

Texts is drawn in RGB color, using values between 0 and 255 (8-bit per channel).
Example: orange = {249, 150, 0}

With these functions you can draw text to the screen. This is a really useful feature that enables you to display the current values of an element—e.g. the current value of an endless encoder.

lcd:draw_text_fast('text', x, y, size, {r, g, b})

Draws the specified text at (x, y) with the specified font size and 8-bit color channels. Size in pixels

draw_text('text', x, y, size, {r, g, b})

Draws the specified text at (x, y) with the specified font size and 8-bit color channels. Size in pixels