LUA Reference Guide
2.9
Ask or search…
⌃
K
EdgeTX 2.9 Lua Reference Guide
Introduction
Script Type Overview
EdgeTX Lua API Programming Guide
EdgeTX Lua API Reference
Constants
General Functions
Model Functions
Lcd Functions
Lcd Functions Overview
lcd.RGB(r, g, b | rgb)
lcd.clear([color])
lcd.drawAnnulus(x, y, r1, r2, start, end [, flags])
lcd.drawArc(x, y, r, start, end [, flags])
lcd.drawBitmap(bitmap, x, y [, scale])
lcd.drawBitmapPattern(bitmap, x, y [, flags])
lcd.drawBitmapPatternPie(bitmap, x, y, startAngle, endAngle [, flags])
lcd.drawChannel(x, y, source, flags)
lcd.drawCircle(x, y, r [, flags])
lcd.drawCombobox(x, y, w, list, idx [, flags])
lcd.drawFilledCircle(x, y, r [, flags])
lcd.drawFilledRectangle(x, y, w, h [, flags])
lcd.drawFilledTriangle(x1, y1, x2, y2, x3, y3 [, flags])
lcd.drawGauge(x, y, w, h, fill, maxfill [, flags])
lcd.drawHudRectangle(pitch, roll, xmin, xmax, ymin, ymax [, flags])
lcd.drawLine(x1, y1, x2, y2, pattern, flags)
lcd.drawLineWithClipping(x1, y1, x2, y2, xmin, xmax, ymin, ymax, pattern [, flags])
lcd.drawNumber(x, y, value [, flags [, inversColor]])
lcd.drawPie(x, y, r, start, end [, 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 [, inversColor]])
lcd.drawTextLines(x, y, w, h, text [, flags])
lcd.drawTimer(x, y, value [, flags [, inversColor]])
lcd.drawTriangle(x1, y1, x2, y2, x3, y3 [, flags])
lcd.exitFullScreen()
lcd.getColor(flags)
lcd.getLastLeftPos()
lcd.getLastPos()
lcd.getLastRightPos()
lcd.invertRect(x, y, w, h [, flags])
lcd.refresh()
lcd.resetBacklightTimeout()
lcd.setColor(colorIndex, color)
lcd.sizeText(text [, flags])
Bitmap Functions
Filesystem
Advanced Topics
Appendix
Powered By
GitBook
Comment on page
lcd.sizeText(text [, flags])
Get the width and height of a text string drawn with flags
@status current Introduced in 2.5.0
Parameters
text
(string)
flags
(optional) please see
flags
and
color
constants
Return value
w,h
(integers) width and height of the text
Previous
lcd.setColor(colorIndex, color)
Next
Bitmap Functions
Last modified
1yr ago