- EdgeTX LUA Reference Guide
- Overview
- LUA API Reference
- Constants
- Display LCD
- lcd.RGB
- lcd.clear
- lcd.drawBitmap
- lcd.drawChannel
- 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.drawAnnulus(x, y, r1, r2, start, end [, flags])
- lcd.drawArc(x, y, r, start, end [, flags])
- lcd.drawCircle(x, y, r [, flags])
- lcd.drawFilledCircle(x, y, r [, flags])
- lcd.drawFilledTriangle(x1, y1, x2, y2, x3, y3 [, flags])
- lcd.drawHudRectangle(pitch, roll, xmin, xmax, ymin, ymax [, flags])
- lcd.drawLineWithClipping(x1, y1, x2, y2, xmin, xmax, ymin, ymax, pattern [, flags])
- lcd.drawPie(x, y, r, start, end [, flags])
- lcd.drawTriangle(x1, y1, x2, y2, x3, y3 [, flags])
- lcd.getColor(area)
- lcd.getLastLeftPos()
- lcd.getLastPos()
- lcd.getLastRightPos()
- lcd.drawBitmapPattern(bitmap, x, y [, flags])
- lcd.drawBitmapPatternPie(bitmap, x, y, startAngle, endAngle [, flags])
- lcd.drawTextLines(x, y, w, h, text [, flags])
- lcd.exitFullScreen()
- lcd.invertRect(x, y, w, h [, flags])
- Lcd Functions Overview
- lcd.refresh()
- lcd.resetBacklightTimeout()
- lcd.setColor(area, color)
- lcd.sizeText(text [, flags])
- popupConfirmation(title, message, event)
- popupInput(title, event, input, min, max)
- popupWarning(title, event)
- GREY()
- Model Functions
- model.defaultInputs
- model.deleteFlightModes
- model.deleteInput
- model.deleteInputs
- model.deleteMix
- model.deleteMixes
- model.getCurve
- model.getCustomFunction(function)
- model.getFlightMode(index)
- model.getGlobalVariable(index, flight_mode)
- model.getInfo
- model.getInput(input, line)
- model.getInputsCount(input)
- model.getLogicalSwitch(switch)
- model.getMix(channel, line)
- model.getMixesCount(channel)
- model.getModule(index)
- model.getOutput(index)
- model.getSensor(sensor)
- model.getTimer(timer)
- model.insertInput(input, line, value)
- model.insertMix(channel, line, value)
- model.getSwashRing()
- model.setSwashRing(params)
- model.resetSensor(sensor)
- model.resetTimer(timer)
- model.setCurve(curve, params)
- model.setCustomFunction(function, value)
- model.setFlightMode(index, params)
- model.setGlobalVariable(index, flight_mode, value)
- model.setInfo(value)
- model.setLogicalSwitch(switch, value)
- model.setModule(index, value)
- model.setOutput(index, value)
- model.setTimer(timer, value)
- Bitmap Functions
- Filesystem
- Serial Ports
- System
- Key Inputs
- LUA Scripts
- Time
- Audio-Sound
- Telemetry
- RF module
- GPS
- Variables
- getFieldInfo(source)
- getFlightMode(mode)
- getLogicalSwitchValue(id)
- getOutputValue(outputIndex)
- getShmVar(id)
- getSourceIndex(sourceName)
- getSourceName(sourceIndex)
- getSourceValue(source)
- getSwitchIndex(positionName)
- getSwitchName(switchIndex)
- getSwitchValue(switchIndex)
- getValue(source)
- setShmVar(id, value)
- setStickySwitch(id, value)
- sources([first[, last]])
- switches([first[, last]])
- LUA API Programming
- Appendixes