lcd.clear¶
Clears the LCD screen optionaly filling it with selected color
Syntax¶
lcd.clear( [color] )¶
Parameters¶
| Name | Req | Type | Description |
|---|---|---|---|
| color | false | integer (colorFlag) | see Drawing Flags |
Returns¶
none
Notes¶
This function works only in stand-alone and telemetry & widget scripts. See script types.
Available on¶
- [x] B\&W LCD radios
- [x] Grayscale LCD radios
- [x] Color LCD radios
API status¶
| EdgeTX version | Action |
|---|---|
| 2.3.0 | Introduced |
Examples¶
Example 1¶
Example 2¶
-- clearing lcd screen to dark red
local darkred = lcd.RGB(20,0,0) -- create color_flag for color
lcd.clear(darkred)