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
Comment on page
lcd.getLastRightPos()
Returns the rightest x position from previous drawtext or drawNumber output
@status current Introduced in 2.2.0
Parameters
none
Return value
number
(integer) x position
Notice
Only available on Taranis
This is strictly equivalent to former lcd.getLastPos()
Previous
lcd.getLastPos()
Next
lcd.refresh()
Last modified
1yr ago