- 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
- GREY()
- accessTelemetryPush()
- chdir(directory)
- crossfireTelemetryPop()
- crossfireTelemetryPush()
- defaultChannel(stick)
- defaultStick(channel)
- flushAudio()
- getAvailableMemory()
- getDateTime()
- getFieldInfo(name)
- getFlightMode(mode)
- getGeneralSettings()
- getGlobalTimer()
- getRAS()
- getRSSI()
- getRotEncSpeed()
- getRtcTime()
- getTime()
- getTxGPS()
- getUsage()
- getValue(source)
- getVersion()
- ghostTelemetryPop()
- ghostTelemetryPush()
- killEvents(key)
- loadScript(file [, mode], [,env])
- multiBuffer(address[,value])
- playDuration(duration [, hourFormat])
- playFile(name)
- playHaptic(duration, pause [, flags])
- playNumber(value, unit [, attributes])
- playTone(frequency, duration, pause [, flags [, freqIncr]])
- popupConfirmation(title, event)
- popupInput(title, event, input, min, max)
- popupWarning(title, event)
- resetGlobalTimer([type])
- serialRead([num])
- serialWrite(str)
- setTelemetryValue(id, subID, instance, value [, unit [, precision [, name]]])
- setSerialBaudrate(baudrate)
- sportTelemetryPop()
- sportTelemetryPush()
- Model Functions
- model.defaultInputs()
- model.deleteFlightModes()
- model.deleteInput(input, line)
- model.deleteInputs()
- model.deleteMix(channel, line)
- model.deleteMixes()
- model.getCurve(curve)
- 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.getSwashRing(params)
- model.getTimer(timer)
- model.insertInput(input, line, value)
- model.insertMix(channel, line, value)
- 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.setSwashRing(params)
- model.setTimer(timer, value)
- 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