lcd¶
since 1.1.0
Functions¶
| Function | Description | Since |
|---|---|---|
RGB() |
Get a color from red, green and blue values with optional alpha opacity. | 1.1.0 |
GREY() |
Get a grey color from a dark value (0 = darker) with optional alpha opacity. | 1.1.0 |
color() |
Get / Set the current color. | 1.1.0 |
themeColor() |
Get / Set the theme color. | 1.1.0 |
darkMode() |
Return true if the dark mode is enable (deprecated) (deprecated) | 1.5.3 |
focusStyle() |
Return the focus style. | 26.1.0 |
font() |
Get / Set the current font. | 1.1.0 |
pen() |
Get / Set the current pen style. | 1.1.0 |
drawPoint() |
Draw a point at given coordinates. | 1.1.0 |
drawLine() |
Draw a line. | 1.1.0 |
drawTriangle() |
Draw a triangle. | 1.5.5 |
drawFilledTriangle() |
Draw a filled triangle. | 1.5.5 |
drawRectangle() |
Draw a rectangle. | 1.1.0 |
drawFilledRectangle() |
Draw a filled rectangle. | 1.1.0 |
drawCircle() |
Draw a circle. | 1.1.0 |
drawFilledCircle() |
Draw a filled circle. | 1.1.0 |
drawAnnulusSector() |
Draw a circular sector. | 1.1.0 |
drawText() |
Draw a text. | 1.1.0 |
drawNumber() |
Draw a number with units. | 1.1.0 |
hasFocus() |
Return true if the current window has the focus, else false. | 1.5.0 |
resetFocusTimeout() |
Reset the 10s focus timeout on Home screen. | 1.5.1 |
loadBitmap() |
Load a bitmap from a file. Allowed formats are BMP / JPG / PNG. Transparency is supported, but it will use more resources. | 1.1.0 |
loadMask() |
Load a mask from a file. Allowed formats are BMP / JPG / PNG, 8-bit/color, RGB. | 1.1.0 |
renderQrCode() |
Render a QR Code from text. | 26.1.1 |
loadFont() |
Load a font from file. | 1.1.0 |
getFont() |
Check if a font is available. | 26.1.0 |
drawBitmap() |
Draw a bitmap. | 1.1.0 |
drawMask() |
Draw a mask. | 1.1.0 |
getTextSize() |
Get the dimensions that will be taken up with text when using the current parameters. | 1.1.0 |
getContrastingColor() |
Get the contrasting color for a given background. | 26.1.0 |
getWindowSize() |
Get the window size. | 1.1.0 |
setClipping() |
Set the clipping rect. | 1.1.0 |
invalidate() |
Invalidate the window or a part of the window (it will be fully drawn on next LCD refresh) | 1.1.0 |
isVisible() |
Check if the window is visible on screen or not. | 1.5.0 |
isSwiping() |
Check if the window is swiping or not. | 26.1.0 |
isConfiguring() |
Check if the window is configuring or not. | 26.1.0 |
setWindowTitle() |
Set the window title. | 1.4.6 |