Skip to content

lcd.invalidate

since 1.1.0

Invalidate the window or a part of the window (it will be fully drawn on next LCD refresh)

lcd.invalidate([x[, y[, w[, h]]]])

Parameters

Name Type Required Description
x number optional X coordinate
y number optional Y coordinate
w number optional rectangle width
h number optional rectangle height

Returns

Nothing.

Examples

From the official Ethos documentation
lcd.invalidate()
lcd.invalidate(0, 0, 100, 100)

Used in

Real-world usage

Called 153 times across 13 open-source Ethos Lua projects. A few short excerpts:
nextStep = false
lcd.invalidate()

lua/frsky/RB25_S/stab/cali/cali.lua:224

if lcd.invalidate then
    lcd.invalidate(widget)

src/ofs3/widgets/dashboard/lib/logviewer.lua:914