Skip to content

lcd.clear

Clears the LCD screen optionaly filling it with selected color

Syntax

lcd.clear( [color] )

Parameters

NameReqTypeDescription
colorfalseinteger (colorFlag)see Drawing Flags

Returns

none

Notes

This function works only in stand-alone and telemetry & widget scripts. See script types.

Available on

API status

EdgeTX versionAction
2.3.0Introduced

Examples

Example 1

-- clearing lcd with system default color
lcd.clear()

Example 2

-- clearing lcd screen to dark red
local darkred = lcd.RGB(20,0,0)  -- create color_flag for color
lcd.clear(darkred)