OpenTX 2.3 Lua Reference Guide
Search
⌃K
OpenTX 2.3 Lua Reference Guide
Introduction
Part I - Script Type Overview
Part II - OpenTX Lua API Programming Guide
Part III - OpenTX Lua API Reference
Constants
General Functions
Model Functions
Lcd Functions
Lcd Functions Overview
lcd.RGB(r, g, b)
lcd.clear([color])
lcd.drawBitmap(bitmap, x, y [, scale])
lcd.drawChannel(x, y, source, flags)
lcd.drawCombobox(x, y, w, list, idx [, flags])
lcd.drawFilledRectangle(x, y, w, h [, flags])
lcd.drawGauge(x, y, w, h, fill, maxfill [, flags])
lcd.drawLine(x1, y1, x2, y2, pattern, flags)
lcd.drawNumber(x, y, value [, flags])
lcd.drawPixmap(x, y, name)
lcd.drawPoint(x, y)
lcd.drawRectangle(x, y, w, h [, flags [, t]])
lcd.drawScreenTitle(title, page, pages)
lcd.drawSource(x, y, source [, flags])
lcd.drawSwitch(x, y, switch, flags)
lcd.drawText(x, y, text [, flags])
lcd.drawTimer(x, y, value [, flags])
lcd.getColor(area)
lcd.getLastLeftPos()
lcd.getLastPos()
lcd.getLastRightPos()
lcd.refresh()
lcd.resetBacklightTimeout()
lcd.setColor(area, color)
Bitmap Functions
Part IV - Converting OpenTX 2.0 Scripts
Part V - Converting OpenTX 2.1 Scripts
Part VI - Advanced Topics
Part VII - Appendix
Powered By
GitBook
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
Previous
lcd.drawScreenTitle(title, page, pages)
Next
lcd.drawSwitch(x, y, switch, flags)
Last modified
1yr ago