# OpenTX 2.3 Lua Reference Guide

## OpenTX 2.3 Lua Reference Guide

- [OpenTX 2.3 Lua Reference Guide](https://doc.open-tx.org/opentx-2-3-lua-reference-guide/readme.md)
- [Introduction](https://doc.open-tx.org/opentx-2-3-lua-reference-guide/introduction.md)
- [Acknowledgments](https://doc.open-tx.org/opentx-2-3-lua-reference-guide/introduction/acknowledgments.md)
- [Getting Started](https://doc.open-tx.org/opentx-2-3-lua-reference-guide/introduction/getting_started.md)
- [Part I - Script Type Overview](https://doc.open-tx.org/opentx-2-3-lua-reference-guide/part_i_-_script_type_overview.md)
- [Mix Scripts](https://doc.open-tx.org/opentx-2-3-lua-reference-guide/part_i_-_script_type_overview/mix.md)
- [Telemetry Scripts](https://doc.open-tx.org/opentx-2-3-lua-reference-guide/part_i_-_script_type_overview/telemetry.md)
- [One-Time Scripts](https://doc.open-tx.org/opentx-2-3-lua-reference-guide/part_i_-_script_type_overview/one-time_scripts.md)
- [Wizard Script](https://doc.open-tx.org/opentx-2-3-lua-reference-guide/part_i_-_script_type_overview/wizard.md)
- [Function Scripts](https://doc.open-tx.org/opentx-2-3-lua-reference-guide/part_i_-_script_type_overview/function_scripts.md)
- [Widget Scripts](https://doc.open-tx.org/opentx-2-3-lua-reference-guide/part_i_-_script_type_overview/widget_scripts.md)
- [Theme Scripts](https://doc.open-tx.org/opentx-2-3-lua-reference-guide/part_i_-_script_type_overview/theme_scripts.md)
- [Part II - OpenTX Lua API Programming Guide](https://doc.open-tx.org/opentx-2-3-lua-reference-guide/part_ii_-_opentx_lua_api_programming_guide.md)
- [Input Table Syntax](https://doc.open-tx.org/opentx-2-3-lua-reference-guide/part_ii_-_opentx_lua_api_programming_guide/input_table_syntax.md)
- [Output Table Syntax](https://doc.open-tx.org/opentx-2-3-lua-reference-guide/part_ii_-_opentx_lua_api_programming_guide/output_table_syntax.md)
- [Init Function Syntax](https://doc.open-tx.org/opentx-2-3-lua-reference-guide/part_ii_-_opentx_lua_api_programming_guide/init_function_syntax.md)
- [Run Function Syntax](https://doc.open-tx.org/opentx-2-3-lua-reference-guide/part_ii_-_opentx_lua_api_programming_guide/run_function_syntax.md)
- [Return Statement Syntax](https://doc.open-tx.org/opentx-2-3-lua-reference-guide/part_ii_-_opentx_lua_api_programming_guide/return_statement_syntax.md)
- [Included Lua Libraries](https://doc.open-tx.org/opentx-2-3-lua-reference-guide/part_ii_-_opentx_lua_api_programming_guide/included_lua_libraries.md)
- [io Library](https://doc.open-tx.org/opentx-2-3-lua-reference-guide/part_ii_-_opentx_lua_api_programming_guide/included_lua_libraries/io-library.md)
- [io.open()](https://doc.open-tx.org/opentx-2-3-lua-reference-guide/part_ii_-_opentx_lua_api_programming_guide/included_lua_libraries/io-library/io.open.md)
- [io.close()](https://doc.open-tx.org/opentx-2-3-lua-reference-guide/part_ii_-_opentx_lua_api_programming_guide/included_lua_libraries/io-library/io.close.md)
- [io.read()](https://doc.open-tx.org/opentx-2-3-lua-reference-guide/part_ii_-_opentx_lua_api_programming_guide/included_lua_libraries/io-library/io.read.md)
- [io.write()](https://doc.open-tx.org/opentx-2-3-lua-reference-guide/part_ii_-_opentx_lua_api_programming_guide/included_lua_libraries/io-library/io.write.md)
- [io.seek()](https://doc.open-tx.org/opentx-2-3-lua-reference-guide/part_ii_-_opentx_lua_api_programming_guide/included_lua_libraries/io-library/io.seek.md)
- [Part III - OpenTX Lua API Reference](https://doc.open-tx.org/opentx-2-3-lua-reference-guide/part_iii_-_opentx_lua_api_reference.md)
- [Constants](https://doc.open-tx.org/opentx-2-3-lua-reference-guide/part_iii_-_opentx_lua_api_reference/constants.md)
- [Key Event Constants](https://doc.open-tx.org/opentx-2-3-lua-reference-guide/part_iii_-_opentx_lua_api_reference/constants/key_events.md)
- [General Functions](https://doc.open-tx.org/opentx-2-3-lua-reference-guide/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general.md)
- [GREY()](https://doc.open-tx.org/opentx-2-3-lua-reference-guide/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/grey.md)
- [accessTelemetryPush()](https://doc.open-tx.org/opentx-2-3-lua-reference-guide/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/accesstelemetrypush.md)
- [chdir(directory)](https://doc.open-tx.org/opentx-2-3-lua-reference-guide/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/chdir.md)
- [crossfireTelemetryPop()](https://doc.open-tx.org/opentx-2-3-lua-reference-guide/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/crossfiretelemetrypop.md)
- [crossfireTelemetryPush()](https://doc.open-tx.org/opentx-2-3-lua-reference-guide/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/crossfiretelemetrypush.md)
- [defaultChannel(stick)](https://doc.open-tx.org/opentx-2-3-lua-reference-guide/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/defaultchannel.md)
- [defaultStick(channel)](https://doc.open-tx.org/opentx-2-3-lua-reference-guide/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/defaultstick.md)
- [flushAudio()](https://doc.open-tx.org/opentx-2-3-lua-reference-guide/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/flushaudio.md)
- [getAvailableMemory()](https://doc.open-tx.org/opentx-2-3-lua-reference-guide/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/getavailablememory.md)
- [getDateTime()](https://doc.open-tx.org/opentx-2-3-lua-reference-guide/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/getdatetime.md)
- [getFieldInfo(name)](https://doc.open-tx.org/opentx-2-3-lua-reference-guide/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/getfieldinfo.md)
- [getFlightMode(mode)](https://doc.open-tx.org/opentx-2-3-lua-reference-guide/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/getflightmode.md)
- [getGeneralSettings()](https://doc.open-tx.org/opentx-2-3-lua-reference-guide/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/getgeneralsettings.md)
- [getGlobalTimer()](https://doc.open-tx.org/opentx-2-3-lua-reference-guide/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/getglobaltimer.md)
- [getRAS()](https://doc.open-tx.org/opentx-2-3-lua-reference-guide/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/getras.md)
- [getRSSI()](https://doc.open-tx.org/opentx-2-3-lua-reference-guide/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/getrssi.md)
- [getRotEncSpeed()](https://doc.open-tx.org/opentx-2-3-lua-reference-guide/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/getrotencspeed.md)
- [getRtcTime()](https://doc.open-tx.org/opentx-2-3-lua-reference-guide/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/getrtctime.md)
- [getTime()](https://doc.open-tx.org/opentx-2-3-lua-reference-guide/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/gettime.md)
- [getTxGPS()](https://doc.open-tx.org/opentx-2-3-lua-reference-guide/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/gettxgps.md)
- [getUsage()](https://doc.open-tx.org/opentx-2-3-lua-reference-guide/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/getusage.md)
- [getValue(source)](https://doc.open-tx.org/opentx-2-3-lua-reference-guide/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/getvalue.md)
- [getVersion()](https://doc.open-tx.org/opentx-2-3-lua-reference-guide/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/getversion.md)
- [ghostTelemetryPop()](https://doc.open-tx.org/opentx-2-3-lua-reference-guide/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/ghosttelemetrypop.md)
- [ghostTelemetryPush()](https://doc.open-tx.org/opentx-2-3-lua-reference-guide/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/ghosttelemetrypush.md)
- [killEvents(key)](https://doc.open-tx.org/opentx-2-3-lua-reference-guide/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/killevents.md)
- [loadScript(file \[, mode\], \[,env\])](https://doc.open-tx.org/opentx-2-3-lua-reference-guide/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/loadscript.md)
- [multiBuffer(address\[,value\])](https://doc.open-tx.org/opentx-2-3-lua-reference-guide/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/multibuffer.md)
- [playDuration(duration \[, hourFormat\])](https://doc.open-tx.org/opentx-2-3-lua-reference-guide/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/playduration.md)
- [playFile(name)](https://doc.open-tx.org/opentx-2-3-lua-reference-guide/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/playfile.md)
- [playHaptic(duration, pause \[, flags\])](https://doc.open-tx.org/opentx-2-3-lua-reference-guide/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/playhaptic.md)
- [playNumber(value, unit \[, attributes\])](https://doc.open-tx.org/opentx-2-3-lua-reference-guide/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/playnumber.md)
- [playTone(frequency, duration, pause \[, flags \[, freqIncr\]\])](https://doc.open-tx.org/opentx-2-3-lua-reference-guide/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/playtone.md)
- [popupConfirmation(title, event)](https://doc.open-tx.org/opentx-2-3-lua-reference-guide/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/popupconfirmation.md)
- [popupInput(title, event, input, min, max)](https://doc.open-tx.org/opentx-2-3-lua-reference-guide/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/popupinput.md)
- [popupWarning(title, event)](https://doc.open-tx.org/opentx-2-3-lua-reference-guide/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/popupwarning.md)
- [resetGlobalTimer(\[type\])](https://doc.open-tx.org/opentx-2-3-lua-reference-guide/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/resetglobaltimer.md)
- [serialRead(\[num\])](https://doc.open-tx.org/opentx-2-3-lua-reference-guide/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/serialread.md)
- [serialWrite(str)](https://doc.open-tx.org/opentx-2-3-lua-reference-guide/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/serialwrite.md)
- [setTelemetryValue(id, subID, instance, value \[, unit \[, precision \[, name\]\]\])](https://doc.open-tx.org/opentx-2-3-lua-reference-guide/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/settelemetryvalue.md)
- [setSerialBaudrate(baudrate)](https://doc.open-tx.org/opentx-2-3-lua-reference-guide/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/setserialbaudrate-baudrate.md)
- [sportTelemetryPop()](https://doc.open-tx.org/opentx-2-3-lua-reference-guide/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/sporttelemetrypop.md)
- [sportTelemetryPush()](https://doc.open-tx.org/opentx-2-3-lua-reference-guide/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/sporttelemetrypush.md)
- [Model Functions](https://doc.open-tx.org/opentx-2-3-lua-reference-guide/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model.md)
- [model.defaultInputs()](https://doc.open-tx.org/opentx-2-3-lua-reference-guide/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/defaultinputs.md)
- [model.deleteFlightModes()](https://doc.open-tx.org/opentx-2-3-lua-reference-guide/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/deleteflightmodes.md)
- [model.deleteInput(input, line)](https://doc.open-tx.org/opentx-2-3-lua-reference-guide/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/deleteinput.md)
- [model.deleteInputs()](https://doc.open-tx.org/opentx-2-3-lua-reference-guide/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/deleteinputs.md)
- [model.deleteMix(channel, line)](https://doc.open-tx.org/opentx-2-3-lua-reference-guide/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/deletemix.md)
- [model.deleteMixes()](https://doc.open-tx.org/opentx-2-3-lua-reference-guide/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/deletemixes.md)
- [model.getCurve(curve)](https://doc.open-tx.org/opentx-2-3-lua-reference-guide/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/getcurve.md)
- [model.getCustomFunction(function)](https://doc.open-tx.org/opentx-2-3-lua-reference-guide/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/getcustomfunction.md)
- [model.getFlightMode(index)](https://doc.open-tx.org/opentx-2-3-lua-reference-guide/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/getflightmode.md)
- [model.getGlobalVariable(index, flight\_mode)](https://doc.open-tx.org/opentx-2-3-lua-reference-guide/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/getglobalvariable.md)
- [model.getInfo()](https://doc.open-tx.org/opentx-2-3-lua-reference-guide/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/getinfo.md)
- [model.getInput(input, line)](https://doc.open-tx.org/opentx-2-3-lua-reference-guide/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/getinput.md)
- [model.getInputsCount(input)](https://doc.open-tx.org/opentx-2-3-lua-reference-guide/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/getinputscount.md)
- [model.getLogicalSwitch(switch)](https://doc.open-tx.org/opentx-2-3-lua-reference-guide/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/getlogicalswitch.md)
- [model.getMix(channel, line)](https://doc.open-tx.org/opentx-2-3-lua-reference-guide/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/getmix.md)
- [model.getMixesCount(channel)](https://doc.open-tx.org/opentx-2-3-lua-reference-guide/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/getmixescount.md)
- [model.getModule(index)](https://doc.open-tx.org/opentx-2-3-lua-reference-guide/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/getmodule.md)
- [model.getOutput(index)](https://doc.open-tx.org/opentx-2-3-lua-reference-guide/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/getoutput.md)
- [model.getSensor(sensor)](https://doc.open-tx.org/opentx-2-3-lua-reference-guide/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/getsensor.md)
- [model.getSwashRing(params)](https://doc.open-tx.org/opentx-2-3-lua-reference-guide/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/getswashring.md)
- [model.getTimer(timer)](https://doc.open-tx.org/opentx-2-3-lua-reference-guide/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/gettimer.md)
- [model.insertInput(input, line, value)](https://doc.open-tx.org/opentx-2-3-lua-reference-guide/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/insertinput.md)
- [model.insertMix(channel, line, value)](https://doc.open-tx.org/opentx-2-3-lua-reference-guide/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/insertmix.md)
- [model.resetSensor(sensor)](https://doc.open-tx.org/opentx-2-3-lua-reference-guide/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/resetsensor.md)
- [model.resetTimer(timer)](https://doc.open-tx.org/opentx-2-3-lua-reference-guide/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/resettimer.md)
- [model.setCurve(curve, params)](https://doc.open-tx.org/opentx-2-3-lua-reference-guide/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/setcurve.md)
- [model.setCustomFunction(function, value)](https://doc.open-tx.org/opentx-2-3-lua-reference-guide/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/setcustomfunction.md)
- [model.setFlightMode(index, params)](https://doc.open-tx.org/opentx-2-3-lua-reference-guide/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/setflightmode.md)
- [model.setGlobalVariable(index, flight\_mode, value)](https://doc.open-tx.org/opentx-2-3-lua-reference-guide/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/setglobalvariable.md)
- [model.setInfo(value)](https://doc.open-tx.org/opentx-2-3-lua-reference-guide/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/setinfo.md)
- [model.setLogicalSwitch(switch, value)](https://doc.open-tx.org/opentx-2-3-lua-reference-guide/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/setlogicalswitch.md)
- [model.setModule(index, value)](https://doc.open-tx.org/opentx-2-3-lua-reference-guide/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/setmodule.md)
- [model.setOutput(index, value)](https://doc.open-tx.org/opentx-2-3-lua-reference-guide/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/setoutput.md)
- [model.setSwashRing(params)](https://doc.open-tx.org/opentx-2-3-lua-reference-guide/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/setswashring.md)
- [model.setTimer(timer, value)](https://doc.open-tx.org/opentx-2-3-lua-reference-guide/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/settimer.md)
- [Lcd Functions](https://doc.open-tx.org/opentx-2-3-lua-reference-guide/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd.md)
- [Lcd Functions Overview](https://doc.open-tx.org/opentx-2-3-lua-reference-guide/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/lcd_functions-overview.md)
- [lcd.RGB(r, g, b)](https://doc.open-tx.org/opentx-2-3-lua-reference-guide/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/rgb.md)
- [lcd.clear(\[color\])](https://doc.open-tx.org/opentx-2-3-lua-reference-guide/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/clear.md)
- [lcd.drawBitmap(bitmap, x, y \[, scale\])](https://doc.open-tx.org/opentx-2-3-lua-reference-guide/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/drawbitmap.md)
- [lcd.drawChannel(x, y, source, flags)](https://doc.open-tx.org/opentx-2-3-lua-reference-guide/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/drawchannel.md)
- [lcd.drawCombobox(x, y, w, list, idx \[, flags\])](https://doc.open-tx.org/opentx-2-3-lua-reference-guide/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/drawcombobox.md)
- [lcd.drawFilledRectangle(x, y, w, h \[, flags\])](https://doc.open-tx.org/opentx-2-3-lua-reference-guide/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/drawfilledrectangle.md)
- [lcd.drawGauge(x, y, w, h, fill, maxfill \[, flags\])](https://doc.open-tx.org/opentx-2-3-lua-reference-guide/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/drawgauge.md)
- [lcd.drawLine(x1, y1, x2, y2, pattern, flags)](https://doc.open-tx.org/opentx-2-3-lua-reference-guide/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/drawline.md)
- [lcd.drawNumber(x, y, value \[, flags\])](https://doc.open-tx.org/opentx-2-3-lua-reference-guide/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/drawnumber.md)
- [lcd.drawPixmap(x, y, name)](https://doc.open-tx.org/opentx-2-3-lua-reference-guide/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/drawpixmap.md)
- [lcd.drawPoint(x, y)](https://doc.open-tx.org/opentx-2-3-lua-reference-guide/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/drawpoint.md)
- [lcd.drawRectangle(x, y, w, h \[, flags \[, t\]\])](https://doc.open-tx.org/opentx-2-3-lua-reference-guide/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/drawrectangle.md)
- [lcd.drawScreenTitle(title, page, pages)](https://doc.open-tx.org/opentx-2-3-lua-reference-guide/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/drawscreentitle.md)
- [lcd.drawSource(x, y, source \[, flags\])](https://doc.open-tx.org/opentx-2-3-lua-reference-guide/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/drawsource.md)
- [lcd.drawSwitch(x, y, switch, flags)](https://doc.open-tx.org/opentx-2-3-lua-reference-guide/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/drawswitch.md)
- [lcd.drawText(x, y, text \[, flags\])](https://doc.open-tx.org/opentx-2-3-lua-reference-guide/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/drawtext.md)
- [lcd.drawTimer(x, y, value \[, flags\])](https://doc.open-tx.org/opentx-2-3-lua-reference-guide/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/drawtimer.md)
- [lcd.getColor(area)](https://doc.open-tx.org/opentx-2-3-lua-reference-guide/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/getcolor.md)
- [lcd.getLastLeftPos()](https://doc.open-tx.org/opentx-2-3-lua-reference-guide/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/getlastleftpos.md)
- [lcd.getLastPos()](https://doc.open-tx.org/opentx-2-3-lua-reference-guide/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/getlastpos.md)
- [lcd.getLastRightPos()](https://doc.open-tx.org/opentx-2-3-lua-reference-guide/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/getlastrightpos.md)
- [lcd.refresh()](https://doc.open-tx.org/opentx-2-3-lua-reference-guide/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/refresh.md)
- [lcd.resetBacklightTimeout()](https://doc.open-tx.org/opentx-2-3-lua-reference-guide/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/resetbacklighttimeout.md)
- [lcd.setColor(area, color)](https://doc.open-tx.org/opentx-2-3-lua-reference-guide/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/setcolor.md)
- [Bitmap Functions](https://doc.open-tx.org/opentx-2-3-lua-reference-guide/part_iii_-_opentx_lua_api_reference/bitmap-functions-less-than-greater-than-luadoc-begin-bitmap.md)
- [Bitmap.getSize(name)](https://doc.open-tx.org/opentx-2-3-lua-reference-guide/part_iii_-_opentx_lua_api_reference/bitmap-functions-less-than-greater-than-luadoc-begin-bitmap/getsize.md)
- [Bitmap.open(name)](https://doc.open-tx.org/opentx-2-3-lua-reference-guide/part_iii_-_opentx_lua_api_reference/bitmap-functions-less-than-greater-than-luadoc-begin-bitmap/open.md)
- [Part IV - Converting OpenTX 2.0 Scripts](https://doc.open-tx.org/opentx-2-3-lua-reference-guide/part_iv_-_converting_opentx_20_scripts.md)
- [General Issues](https://doc.open-tx.org/opentx-2-3-lua-reference-guide/part_iv_-_converting_opentx_20_scripts/known_issues.md)
- [Handling GPS Sensor data](https://doc.open-tx.org/opentx-2-3-lua-reference-guide/part_iv_-_converting_opentx_20_scripts/handling_gps_sensor_data.md)
- [Handling Lipo Sensor Data](https://doc.open-tx.org/opentx-2-3-lua-reference-guide/part_iv_-_converting_opentx_20_scripts/handling_lipo_sensor_data.md)
- [Part V - Converting OpenTX 2.1 Scripts](https://doc.open-tx.org/opentx-2-3-lua-reference-guide/part_v_-_converting_opentx_21_scripts.md)
- [Part VI - Advanced Topics](https://doc.open-tx.org/opentx-2-3-lua-reference-guide/part_vi_-_advanced_topics.md)
- [Lua data sharing across scripts](https://doc.open-tx.org/opentx-2-3-lua-reference-guide/part_vi_-_advanced_topics/lua_data_sharing_across_scripts.md)
- [Debugging techniques](https://doc.open-tx.org/opentx-2-3-lua-reference-guide/part_vi_-_advanced_topics/debugging_techniques.md)
- [Speed/memory optimizaton tricks](https://doc.open-tx.org/opentx-2-3-lua-reference-guide/part_vi_-_advanced_topics/optimization_tricks.md)
- [Part VII - Appendix](https://doc.open-tx.org/opentx-2-3-lua-reference-guide/part_vii_-_appendix.md)
- [Fonts](https://doc.open-tx.org/opentx-2-3-lua-reference-guide/part_vii_-_appendix/fonts.md)
- [Units](https://doc.open-tx.org/opentx-2-3-lua-reference-guide/part_vii_-_appendix/units.md)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information, you can query the documentation dynamically by asking a question.
Perform an HTTP GET request on a page URL with the `ask` query parameter:
```
GET https://doc.open-tx.org/opentx-2-3-lua-reference-guide/readme.md?ask=<question>
```
The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.
Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
