> For the complete documentation index, see [llms.txt](https://doc.open-tx.org/opentx-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-lua-reference-guide/part_iii_-_opentx_lua_api_reference/lcd_functions/drawsource.md).

# lcd.drawSource(x, y, source \[, flags])

Displays the name of the corresponding input as defined by the source at (x,y)

@status current Introduced in 2.0.0

### Parameters

* `x,y` (positive numbers) starting coordinate
* `source` (number) source index
* `flags` (unsigned number) drawing flags

### Return value

none

## Examples

[lcd/drawSource-example](https://raw.githubusercontent.com/opentx/lua-reference-guide/master/lcd/drawSource-example.lua)

```lua
local function run(event)
  local source
  lcd.clear()
  lcd.drawText(1, 1,"drawSource() example", 0)
  for source = 1, 5 do
   lcd.drawSource(1, source * 10, source, 0)
   lcd.drawText(lcd.getLastPos(), source * 10, " is input source number " .. source)
  end
end

return{run=run}
```

![](https://2443226175-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MRzpA5IZ0ZG8wYxAV6k%2Fsync%2F7439e1e1abc820fee1c3a4770de813357735bc31.png?generation=1611683698442570\&alt=media)
