> For the complete documentation index, see [llms.txt](https://doc.open-tx.org/opentx-2-3-lua-reference-guide/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://doc.open-tx.org/opentx-2-3-lua-reference-guide/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/drawswitch.md).

# lcd.drawSwitch(x, y, switch, flags)

Draw a text representation of switch at (x,y)

@status current Introduced in 2.0.0

## Parameters

* `x,y` (positive numbers) starting coordinate
* `switch` (number) number of switch to display, negative number displays negated switch
* `flags` (unsigned number) drawing flags, only SMLSIZE, BLINK and INVERS.

## Return value

none
