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.drawScreenTitle(title, page, pages)
Draw a title bar
@status current Introduced in 2.0.0
Parameters
title
(string) text for the title
page
(number) page number
pages
(number) total number of pages. Only used as indicator on the right side of title bar. (i.e. idx=2, cnt=5, display
2/5
)
Return value
none
Notice
Only available on Taranis
Previous
lcd.drawRectangle(x, y, w, h [, flags [, t]])
Next
lcd.drawSource(x, y, source [, flags])
Last modified
1yr ago