# LUA Reference Guide

## OTX 2.3

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

## 2.4

- [EdgeTX 2.4 Lua Reference Guide](https://luadoc.edgetx.org/edgetx_2.4/undefined.md)
- [Introduction](https://luadoc.edgetx.org/edgetx_2.4/introduction.md)
- [Acknowledgments](https://luadoc.edgetx.org/edgetx_2.4/introduction/acknowledgments.md)
- [Getting Started](https://luadoc.edgetx.org/edgetx_2.4/introduction/getting_started.md)
- [Part I - Script Type Overview](https://luadoc.edgetx.org/edgetx_2.4/part_i_-_script_type_overview.md): This section introduces the types of Lua scripts supported by EdgeTX and how they may be used.
- [Custom (Mixer) Scripts](https://luadoc.edgetx.org/edgetx_2.4/part_i_-_script_type_overview/mix.md)
- [Telemetry Scripts](https://luadoc.edgetx.org/edgetx_2.4/part_i_-_script_type_overview/telemetry.md)
- [One-Time Scripts](https://luadoc.edgetx.org/edgetx_2.4/part_i_-_script_type_overview/one-time_scripts.md)
- [Wizard Script](https://luadoc.edgetx.org/edgetx_2.4/part_i_-_script_type_overview/wizard.md)
- [Function Scripts](https://luadoc.edgetx.org/edgetx_2.4/part_i_-_script_type_overview/function_scripts.md)
- [Widget Scripts](https://luadoc.edgetx.org/edgetx_2.4/part_i_-_script_type_overview/widget_scripts.md)
- [Part II - EdgeTX Lua API Programming Guide](https://luadoc.edgetx.org/edgetx_2.4/part_ii_-_opentx_lua_api_programming_guide.md)
- [Lua Basics](https://luadoc.edgetx.org/edgetx_2.4/part_ii_-_opentx_lua_api_programming_guide/lua-basics.md): Lua is a small but powerful language. This section will explain a few of the most important concepts.
- [Loading Code Modules Dynamically](https://luadoc.edgetx.org/edgetx_2.4/part_ii_-_opentx_lua_api_programming_guide/loading-code-modules-dynamically.md): Lua makes it easy to load and unload code modules on the fly, to save memory or to provide program extensions.
- [Saving Memory](https://luadoc.edgetx.org/edgetx_2.4/part_ii_-_opentx_lua_api_programming_guide/saving-memory.md)
- [Using Key and Touch Events](https://luadoc.edgetx.org/edgetx_2.4/part_ii_-_opentx_lua_api_programming_guide/using-key-and-touch-events.md)
- [Included Lua Libraries](https://luadoc.edgetx.org/edgetx_2.4/part_ii_-_opentx_lua_api_programming_guide/included_lua_libraries.md)
- [bit32.Library](https://luadoc.edgetx.org/edgetx_2.4/part_ii_-_opentx_lua_api_programming_guide/included_lua_libraries/bit32.library.md)
- [io Library](https://luadoc.edgetx.org/edgetx_2.4/part_ii_-_opentx_lua_api_programming_guide/included_lua_libraries/io-library.md)
- [io.open()](https://luadoc.edgetx.org/edgetx_2.4/part_ii_-_opentx_lua_api_programming_guide/included_lua_libraries/io-library/io.open.md)
- [io.close()](https://luadoc.edgetx.org/edgetx_2.4/part_ii_-_opentx_lua_api_programming_guide/included_lua_libraries/io-library/io.close.md)
- [io.read()](https://luadoc.edgetx.org/edgetx_2.4/part_ii_-_opentx_lua_api_programming_guide/included_lua_libraries/io-library/io.read.md)
- [io.write()](https://luadoc.edgetx.org/edgetx_2.4/part_ii_-_opentx_lua_api_programming_guide/included_lua_libraries/io-library/io.write.md)
- [io.seek()](https://luadoc.edgetx.org/edgetx_2.4/part_ii_-_opentx_lua_api_programming_guide/included_lua_libraries/io-library/io.seek.md)
- [math.Library](https://luadoc.edgetx.org/edgetx_2.4/part_ii_-_opentx_lua_api_programming_guide/included_lua_libraries/math.library.md)
- [string.Library](https://luadoc.edgetx.org/edgetx_2.4/part_ii_-_opentx_lua_api_programming_guide/included_lua_libraries/string.library.md)
- [Part III - EdgeTX Lua API Reference](https://luadoc.edgetx.org/edgetx_2.4/part_iii_-_opentx_lua_api_reference.md)
- [Constants](https://luadoc.edgetx.org/edgetx_2.4/part_iii_-_opentx_lua_api_reference/constants.md): This section describes various constants that are provided for Lua by EdgeTX.
- [Key Event Constants](https://luadoc.edgetx.org/edgetx_2.4/part_iii_-_opentx_lua_api_reference/constants/key_events.md): This page describes the value that is passed to scripts in the event parameter. It is used in Telemetry and One-Time scripts, as well as widget scripts in full screen mode.
- [Touch Event Constants](https://luadoc.edgetx.org/edgetx_2.4/part_iii_-_opentx_lua_api_reference/constants/touch-event-constants.md): In addition to the key events described in the previous section, radios with a color touch screen also provide touch events to the widget scripts.
- [Flags and Pattern Constants](https://luadoc.edgetx.org/edgetx_2.4/part_iii_-_opentx_lua_api_reference/constants/flags-and-pattern-constants.md): Many of the lcd functions accept parameters named flags and patterns. The names and their meanings are described below.
- [Color Constants](https://luadoc.edgetx.org/edgetx_2.4/part_iii_-_opentx_lua_api_reference/constants/color-constants.md): On radios with color display, a color may be added to the flags described above.
- [Screen Constants](https://luadoc.edgetx.org/edgetx_2.4/part_iii_-_opentx_lua_api_reference/constants/screen-constants.md)
- [General Functions](https://luadoc.edgetx.org/edgetx_2.4/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general.md)
- [GREY()](https://luadoc.edgetx.org/edgetx_2.4/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/grey.md)
- [accessTelemetryPush()](https://luadoc.edgetx.org/edgetx_2.4/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/accesstelemetrypush.md)
- [chdir(directory)](https://luadoc.edgetx.org/edgetx_2.4/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/chdir.md)
- [crossfireTelemetryPop()](https://luadoc.edgetx.org/edgetx_2.4/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/crossfiretelemetrypop.md)
- [crossfireTelemetryPush()](https://luadoc.edgetx.org/edgetx_2.4/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/crossfiretelemetrypush.md)
- [defaultChannel(stick)](https://luadoc.edgetx.org/edgetx_2.4/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/defaultchannel.md)
- [defaultStick(channel)](https://luadoc.edgetx.org/edgetx_2.4/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/defaultstick.md)
- [getAvailableMemory()](https://luadoc.edgetx.org/edgetx_2.4/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/getavailablememory.md)
- [getDateTime()](https://luadoc.edgetx.org/edgetx_2.4/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/getdatetime.md)
- [getFieldInfo(name)](https://luadoc.edgetx.org/edgetx_2.4/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/getfieldinfo.md)
- [getFlightMode(mode)](https://luadoc.edgetx.org/edgetx_2.4/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/getflightmode.md)
- [getGeneralSettings()](https://luadoc.edgetx.org/edgetx_2.4/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/getgeneralsettings.md)
- [getGlobalTimer()](https://luadoc.edgetx.org/edgetx_2.4/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/getglobaltimer.md)
- [getRAS()](https://luadoc.edgetx.org/edgetx_2.4/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/getras.md)
- [getRSSI()](https://luadoc.edgetx.org/edgetx_2.4/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/getrssi.md)
- [getRotEncSpeed()](https://luadoc.edgetx.org/edgetx_2.4/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/getrotencspeed.md)
- [getRtcTime()](https://luadoc.edgetx.org/edgetx_2.4/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/getrtctime.md)
- [getTime()](https://luadoc.edgetx.org/edgetx_2.4/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/gettime.md)
- [getTxGPS()](https://luadoc.edgetx.org/edgetx_2.4/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/gettxgps.md)
- [getUsage()](https://luadoc.edgetx.org/edgetx_2.4/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/getusage.md)
- [getValue(source)](https://luadoc.edgetx.org/edgetx_2.4/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/getvalue.md)
- [getVersion()](https://luadoc.edgetx.org/edgetx_2.4/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/getversion.md)
- [killEvents(key)](https://luadoc.edgetx.org/edgetx_2.4/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/killevents.md)
- [loadScript(file \[, mode\], \[,env\])](https://luadoc.edgetx.org/edgetx_2.4/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/loadscript.md)
- [multiBuffer(address\[,value\])](https://luadoc.edgetx.org/edgetx_2.4/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/multibuffer.md)
- [playDuration(duration \[, hourFormat\])](https://luadoc.edgetx.org/edgetx_2.4/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/playduration.md)
- [playFile(name)](https://luadoc.edgetx.org/edgetx_2.4/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/playfile.md)
- [playHaptic(duration, pause \[, flags\])](https://luadoc.edgetx.org/edgetx_2.4/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/playhaptic.md)
- [playNumber(value, unit \[, attributes\])](https://luadoc.edgetx.org/edgetx_2.4/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/playnumber.md)
- [playTone(frequency, duration, pause \[, flags \[, freqIncr\]\])](https://luadoc.edgetx.org/edgetx_2.4/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/playtone.md)
- [popupConfirmation(title, message, event)](https://luadoc.edgetx.org/edgetx_2.4/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/popupconfirmation.md)
- [popupInput(title, event, input, min, max)](https://luadoc.edgetx.org/edgetx_2.4/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/popupinput.md)
- [popupWarning(title, event)](https://luadoc.edgetx.org/edgetx_2.4/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/popupwarning.md)
- [resetGlobalTimer(\[type\])](https://luadoc.edgetx.org/edgetx_2.4/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/resetglobaltimer.md)
- [serialRead(\[num\])](https://luadoc.edgetx.org/edgetx_2.4/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/serialread.md)
- [serialWrite(str)](https://luadoc.edgetx.org/edgetx_2.4/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/serialwrite.md)
- [setSerialBaudrate(baudrate)](https://luadoc.edgetx.org/edgetx_2.4/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/setserialbaudrate.md)
- [setTelemetryValue(id, subID, instance, value \[, unit \[, precision \[, name\]\]\])](https://luadoc.edgetx.org/edgetx_2.4/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/settelemetryvalue.md)
- [sportTelemetryPop()](https://luadoc.edgetx.org/edgetx_2.4/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/sporttelemetrypop.md)
- [sportTelemetryPush()](https://luadoc.edgetx.org/edgetx_2.4/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/sporttelemetrypush.md)
- [Model Functions](https://luadoc.edgetx.org/edgetx_2.4/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model.md)
- [model.defaultInputs()](https://luadoc.edgetx.org/edgetx_2.4/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/defaultinputs.md)
- [model.deleteFlightModes()](https://luadoc.edgetx.org/edgetx_2.4/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/deleteflightmodes.md)
- [model.deleteInput(input, line)](https://luadoc.edgetx.org/edgetx_2.4/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/deleteinput.md)
- [model.deleteInputs()](https://luadoc.edgetx.org/edgetx_2.4/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/deleteinputs.md)
- [model.deleteMix(channel, line)](https://luadoc.edgetx.org/edgetx_2.4/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/deletemix.md)
- [model.deleteMixes()](https://luadoc.edgetx.org/edgetx_2.4/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/deletemixes.md)
- [model.getCurve(curve)](https://luadoc.edgetx.org/edgetx_2.4/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/getcurve.md)
- [model.getCustomFunction(function)](https://luadoc.edgetx.org/edgetx_2.4/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/getcustomfunction.md)
- [model.getFlightMode(index)](https://luadoc.edgetx.org/edgetx_2.4/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/getflightmode.md)
- [model.getGlobalVariable(index, flight\_mode)](https://luadoc.edgetx.org/edgetx_2.4/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/getglobalvariable.md)
- [model.getInfo()](https://luadoc.edgetx.org/edgetx_2.4/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/getinfo.md)
- [model.getInput(input, line)](https://luadoc.edgetx.org/edgetx_2.4/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/getinput.md)
- [model.getInputsCount(input)](https://luadoc.edgetx.org/edgetx_2.4/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/getinputscount.md)
- [model.getLogicalSwitch(switch)](https://luadoc.edgetx.org/edgetx_2.4/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/getlogicalswitch.md)
- [model.getMix(channel, line)](https://luadoc.edgetx.org/edgetx_2.4/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/getmix.md)
- [model.getMixesCount(channel)](https://luadoc.edgetx.org/edgetx_2.4/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/getmixescount.md)
- [model.getModule(index)](https://luadoc.edgetx.org/edgetx_2.4/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/getmodule.md)
- [model.getOutput(index)](https://luadoc.edgetx.org/edgetx_2.4/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/getoutput.md)
- [model.getSensor(sensor)](https://luadoc.edgetx.org/edgetx_2.4/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/getsensor.md)
- [model.getTimer(timer)](https://luadoc.edgetx.org/edgetx_2.4/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/gettimer.md)
- [model.insertInput(input, line, value)](https://luadoc.edgetx.org/edgetx_2.4/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/insertinput.md)
- [model.insertMix(channel, line, value)](https://luadoc.edgetx.org/edgetx_2.4/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/insertmix.md)
- [model.resetSensor(sensor)](https://luadoc.edgetx.org/edgetx_2.4/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/resetsensor.md)
- [model.resetTimer(timer)](https://luadoc.edgetx.org/edgetx_2.4/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/resettimer.md)
- [model.setCurve(curve, params)](https://luadoc.edgetx.org/edgetx_2.4/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/setcurve.md)
- [model.setCustomFunction(function, value)](https://luadoc.edgetx.org/edgetx_2.4/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/setcustomfunction.md)
- [model.setFlightMode(index, params)](https://luadoc.edgetx.org/edgetx_2.4/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/setflightmode.md)
- [model.setGlobalVariable(index, flight\_mode, value)](https://luadoc.edgetx.org/edgetx_2.4/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/setglobalvariable.md)
- [model.setInfo(value)](https://luadoc.edgetx.org/edgetx_2.4/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/setinfo.md)
- [model.setLogicalSwitch(switch, value)](https://luadoc.edgetx.org/edgetx_2.4/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/setlogicalswitch.md)
- [model.setModule(index, value)](https://luadoc.edgetx.org/edgetx_2.4/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/setmodule.md)
- [model.setOutput(index, value)](https://luadoc.edgetx.org/edgetx_2.4/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/setoutput.md)
- [model.setTimer(timer, value)](https://luadoc.edgetx.org/edgetx_2.4/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/settimer.md)
- [Lcd Functions](https://luadoc.edgetx.org/edgetx_2.4/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd.md)
- [Lcd Functions Overview](https://luadoc.edgetx.org/edgetx_2.4/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://luadoc.edgetx.org/edgetx_2.4/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/rgb.md)
- [lcd.clear(\[color\])](https://luadoc.edgetx.org/edgetx_2.4/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/clear.md)
- [lcd.drawAnnulus(x, y, r1, r2, start, end \[, flags\])](https://luadoc.edgetx.org/edgetx_2.4/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/drawannulus.md)
- [lcd.drawArc(x, y, r, start, end \[, flags\])](https://luadoc.edgetx.org/edgetx_2.4/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/drawarc.md)
- [lcd.drawBitmap(bitmap, x, y \[, scale\])](https://luadoc.edgetx.org/edgetx_2.4/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/drawbitmap.md)
- [lcd.drawChannel(x, y, source, flags)](https://luadoc.edgetx.org/edgetx_2.4/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/drawchannel.md)
- [lcd.drawCircle(x, y, r \[, flags\])](https://luadoc.edgetx.org/edgetx_2.4/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/drawcircle.md)
- [lcd.drawCombobox(x, y, w, list, idx \[, flags\])](https://luadoc.edgetx.org/edgetx_2.4/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/drawcombobox.md)
- [lcd.drawFilledCircle(x, y, r \[, flags\])](https://luadoc.edgetx.org/edgetx_2.4/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/drawfilledcircle.md)
- [lcd.drawFilledRectangle(x, y, w, h \[, flags\])](https://luadoc.edgetx.org/edgetx_2.4/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/drawfilledrectangle.md)
- [lcd.drawFilledTriangle(x1, y1, x2, y2, x3, y3 \[, flags\])](https://luadoc.edgetx.org/edgetx_2.4/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/drawfilledtriangle.md)
- [lcd.drawGauge(x, y, w, h, fill, maxfill \[, flags\])](https://luadoc.edgetx.org/edgetx_2.4/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/drawgauge.md)
- [lcd.drawHudRectangle(pitch, roll, xmin, xmax, ymin, ymax \[, flags\])](https://luadoc.edgetx.org/edgetx_2.4/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/drawhudrectangle.md)
- [lcd.drawLine(x1, y1, x2, y2, pattern, flags)](https://luadoc.edgetx.org/edgetx_2.4/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/drawline.md)
- [lcd.drawLineWithClipping(x1, y1, x2, y2, xmin, xmax, ymin, ymax, pattern \[, flags\])](https://luadoc.edgetx.org/edgetx_2.4/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/drawlinewithclipping.md)
- [lcd.drawNumber(x, y, value \[, flags \[, inversColor\]\])](https://luadoc.edgetx.org/edgetx_2.4/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/drawnumber.md)
- [lcd.drawPie(x, y, r, start, end \[, flags\])](https://luadoc.edgetx.org/edgetx_2.4/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/drawpie.md)
- [lcd.drawPixmap(x, y, name)](https://luadoc.edgetx.org/edgetx_2.4/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/drawpixmap.md)
- [lcd.drawPoint(x, y)](https://luadoc.edgetx.org/edgetx_2.4/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://luadoc.edgetx.org/edgetx_2.4/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/drawrectangle.md)
- [lcd.drawScreenTitle(title, page, pages)](https://luadoc.edgetx.org/edgetx_2.4/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/drawscreentitle.md)
- [lcd.drawSource(x, y, source \[, flags\])](https://luadoc.edgetx.org/edgetx_2.4/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/drawsource.md)
- [lcd.drawSwitch(x, y, switch, flags)](https://luadoc.edgetx.org/edgetx_2.4/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/drawswitch.md)
- [lcd.drawText(x, y, text \[, flags \[, inversColor\]\])](https://luadoc.edgetx.org/edgetx_2.4/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/drawtext.md)
- [lcd.drawTimer(x, y, value \[, flags \[, inversColor\]\])](https://luadoc.edgetx.org/edgetx_2.4/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/drawtimer.md)
- [lcd.drawTriangle(x1, y1, x2, y2, x3, y3 \[, flags\])](https://luadoc.edgetx.org/edgetx_2.4/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/drawtriangle.md)
- [lcd.getColor(flags)](https://luadoc.edgetx.org/edgetx_2.4/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/getcolor.md)
- [lcd.getLastLeftPos()](https://luadoc.edgetx.org/edgetx_2.4/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/getlastleftpos.md)
- [lcd.getLastPos()](https://luadoc.edgetx.org/edgetx_2.4/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/getlastpos.md)
- [lcd.getLastRightPos()](https://luadoc.edgetx.org/edgetx_2.4/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/getlastrightpos.md)
- [lcd.refresh()](https://luadoc.edgetx.org/edgetx_2.4/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/refresh.md)
- [lcd.resetBacklightTimeout()](https://luadoc.edgetx.org/edgetx_2.4/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/resetbacklighttimeout.md)
- [lcd.setColor(colorIndex, color)](https://luadoc.edgetx.org/edgetx_2.4/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/setcolor.md)
- [lcd.sizeText(text \[, flags\])](https://luadoc.edgetx.org/edgetx_2.4/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/sizetext.md)
- [Bitmap Functions](https://luadoc.edgetx.org/edgetx_2.4/part_iii_-_opentx_lua_api_reference/bitmap-functions-less-than-greater-than-luadoc-begin-bitmap.md)
- [Bitmap.getSize(name)](https://luadoc.edgetx.org/edgetx_2.4/part_iii_-_opentx_lua_api_reference/bitmap-functions-less-than-greater-than-luadoc-begin-bitmap/getsize.md)
- [Bitmap.open(name)](https://luadoc.edgetx.org/edgetx_2.4/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://luadoc.edgetx.org/edgetx_2.4/part_iv_-_converting_opentx_20_scripts.md)
- [General Issues](https://luadoc.edgetx.org/edgetx_2.4/part_iv_-_converting_opentx_20_scripts/known_issues.md)
- [Handling GPS Sensor data](https://luadoc.edgetx.org/edgetx_2.4/part_iv_-_converting_opentx_20_scripts/handling_gps_sensor_data.md)
- [Handling Lipo Sensor Data](https://luadoc.edgetx.org/edgetx_2.4/part_iv_-_converting_opentx_20_scripts/handling_lipo_sensor_data.md)
- [Part V - Converting OpenTX 2.1 Scripts](https://luadoc.edgetx.org/edgetx_2.4/part_v_-_converting_opentx_21_scripts.md)
- [Part VI - Advanced Topics](https://luadoc.edgetx.org/edgetx_2.4/part_vi_-_advanced_topics.md)
- [Lua data sharing across scripts](https://luadoc.edgetx.org/edgetx_2.4/part_vi_-_advanced_topics/lua_data_sharing_across_scripts.md)
- [Debugging techniques](https://luadoc.edgetx.org/edgetx_2.4/part_vi_-_advanced_topics/debugging_techniques.md)
- [Speed/memory optimizaton tricks](https://luadoc.edgetx.org/edgetx_2.4/part_vi_-_advanced_topics/optimization_tricks.md)
- [Part VII - Appendix](https://luadoc.edgetx.org/edgetx_2.4/part_vii_-_appendix.md)
- [Fonts](https://luadoc.edgetx.org/edgetx_2.4/part_vii_-_appendix/fonts.md)
- [Units](https://luadoc.edgetx.org/edgetx_2.4/part_vii_-_appendix/units.md)

## 2.5

- [EdgeTX 2.5 Lua Reference Guide](https://luadoc.edgetx.org/edgetx_2.5/readme.md)
- [Introduction](https://luadoc.edgetx.org/edgetx_2.5/introduction.md)
- [Acknowledgments](https://luadoc.edgetx.org/edgetx_2.5/introduction/acknowledgments.md)
- [Getting Started](https://luadoc.edgetx.org/edgetx_2.5/introduction/getting_started.md)
- [Part I - Script Type Overview](https://luadoc.edgetx.org/edgetx_2.5/part_i_-_script_type_overview.md): This section introduces the types of Lua scripts supported by EdgeTX and how they may be used.
- [Custom (Mixer) Scripts](https://luadoc.edgetx.org/edgetx_2.5/part_i_-_script_type_overview/mix.md)
- [Telemetry Scripts](https://luadoc.edgetx.org/edgetx_2.5/part_i_-_script_type_overview/telemetry.md)
- [One-Time Scripts](https://luadoc.edgetx.org/edgetx_2.5/part_i_-_script_type_overview/one-time_scripts.md)
- [Wizard Script](https://luadoc.edgetx.org/edgetx_2.5/part_i_-_script_type_overview/wizard.md)
- [Function Scripts](https://luadoc.edgetx.org/edgetx_2.5/part_i_-_script_type_overview/function_scripts.md)
- [Widget Scripts](https://luadoc.edgetx.org/edgetx_2.5/part_i_-_script_type_overview/widget_scripts.md)
- [Part II - EdgeTX Lua API Programming Guide](https://luadoc.edgetx.org/edgetx_2.5/part_ii_-_opentx_lua_api_programming_guide.md)
- [Lua Basics](https://luadoc.edgetx.org/edgetx_2.5/part_ii_-_opentx_lua_api_programming_guide/lua-basics.md): Lua is a small but powerful language. This section will explain a few of the most important concepts.
- [Loading Code Modules Dynamically](https://luadoc.edgetx.org/edgetx_2.5/part_ii_-_opentx_lua_api_programming_guide/loading-code-modules-dynamically.md): Lua makes it easy to load and unload code modules on the fly, to save memory or to provide program extensions.
- [Saving Memory](https://luadoc.edgetx.org/edgetx_2.5/part_ii_-_opentx_lua_api_programming_guide/saving-memory.md): This chapter will show you some ways that large script projects can be fitted into the limited memory of our radios.
- [Using Key and Touch Events](https://luadoc.edgetx.org/edgetx_2.5/part_ii_-_opentx_lua_api_programming_guide/using-key-and-touch-events.md): This section will discuss how interactive scripts receiving user inputs via key and touch events can be created.
- [Drawing Flags and Colors](https://luadoc.edgetx.org/edgetx_2.5/part_ii_-_opentx_lua_api_programming_guide/drawing-flags-and-colors.md): This section will give some technical details for radios with a color screen.
- [Included Lua Libraries](https://luadoc.edgetx.org/edgetx_2.5/part_ii_-_opentx_lua_api_programming_guide/included_lua_libraries.md)
- [io Library](https://luadoc.edgetx.org/edgetx_2.5/part_ii_-_opentx_lua_api_programming_guide/included_lua_libraries/io-library.md)
- [io.open()](https://luadoc.edgetx.org/edgetx_2.5/part_ii_-_opentx_lua_api_programming_guide/included_lua_libraries/io-library/io.open.md)
- [io.close()](https://luadoc.edgetx.org/edgetx_2.5/part_ii_-_opentx_lua_api_programming_guide/included_lua_libraries/io-library/io.close.md)
- [io.read()](https://luadoc.edgetx.org/edgetx_2.5/part_ii_-_opentx_lua_api_programming_guide/included_lua_libraries/io-library/io.read.md)
- [io.write()](https://luadoc.edgetx.org/edgetx_2.5/part_ii_-_opentx_lua_api_programming_guide/included_lua_libraries/io-library/io.write.md)
- [io.seek()](https://luadoc.edgetx.org/edgetx_2.5/part_ii_-_opentx_lua_api_programming_guide/included_lua_libraries/io-library/io.seek.md)
- [Part III - EdgeTX Lua API Reference](https://luadoc.edgetx.org/edgetx_2.5/part_iii_-_opentx_lua_api_reference.md)
- [Constants](https://luadoc.edgetx.org/edgetx_2.5/part_iii_-_opentx_lua_api_reference/constants.md): This section describes various constants that are provided for Lua by EdgeTX.
- [Key Event Constants](https://luadoc.edgetx.org/edgetx_2.5/part_iii_-_opentx_lua_api_reference/constants/key_events.md): This page describes the value that is passed to scripts in the event parameter. It is used in Telemetry and One-Time scripts, as well as widget scripts in full screen mode.
- [Touch Event Constants](https://luadoc.edgetx.org/edgetx_2.5/part_iii_-_opentx_lua_api_reference/constants/touch-event-constants.md): In addition to the key events described in the previous section, radios with a color touch screen also provide touch events to the widget scripts.
- [Flags and Pattern Constants](https://luadoc.edgetx.org/edgetx_2.5/part_iii_-_opentx_lua_api_reference/constants/flags-and-pattern-constants.md): Many of the lcd functions accept parameters named flags and patterns. The names and their meanings are described below.
- [Color Constants](https://luadoc.edgetx.org/edgetx_2.5/part_iii_-_opentx_lua_api_reference/constants/color-constants.md): On radios with color display, a color may be added to the flags described above.
- [Screen Constants](https://luadoc.edgetx.org/edgetx_2.5/part_iii_-_opentx_lua_api_reference/constants/screen-constants.md)
- [General Functions](https://luadoc.edgetx.org/edgetx_2.5/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general.md)
- [GREY()](https://luadoc.edgetx.org/edgetx_2.5/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/grey.md)
- [accessTelemetryPush()](https://luadoc.edgetx.org/edgetx_2.5/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/accesstelemetrypush.md)
- [chdir(directory)](https://luadoc.edgetx.org/edgetx_2.5/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/chdir.md)
- [crossfireTelemetryPop()](https://luadoc.edgetx.org/edgetx_2.5/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/crossfiretelemetrypop.md)
- [crossfireTelemetryPush()](https://luadoc.edgetx.org/edgetx_2.5/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/crossfiretelemetrypush.md)
- [defaultChannel(stick)](https://luadoc.edgetx.org/edgetx_2.5/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/defaultchannel.md)
- [defaultStick(channel)](https://luadoc.edgetx.org/edgetx_2.5/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/defaultstick.md)
- [getAvailableMemory()](https://luadoc.edgetx.org/edgetx_2.5/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/getavailablememory.md)
- [getDateTime()](https://luadoc.edgetx.org/edgetx_2.5/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/getdatetime.md)
- [getFieldInfo(name)](https://luadoc.edgetx.org/edgetx_2.5/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/getfieldinfo.md)
- [getFlightMode(mode)](https://luadoc.edgetx.org/edgetx_2.5/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/getflightmode.md)
- [getGeneralSettings()](https://luadoc.edgetx.org/edgetx_2.5/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/getgeneralsettings.md)
- [getGlobalTimer()](https://luadoc.edgetx.org/edgetx_2.5/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/getglobaltimer.md)
- [getRAS()](https://luadoc.edgetx.org/edgetx_2.5/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/getras.md)
- [getRSSI()](https://luadoc.edgetx.org/edgetx_2.5/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/getrssi.md)
- [getRotEncSpeed()](https://luadoc.edgetx.org/edgetx_2.5/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/getrotencspeed.md)
- [getRtcTime()](https://luadoc.edgetx.org/edgetx_2.5/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/getrtctime.md)
- [getTime()](https://luadoc.edgetx.org/edgetx_2.5/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/gettime.md)
- [getTxGPS()](https://luadoc.edgetx.org/edgetx_2.5/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/gettxgps.md)
- [getUsage()](https://luadoc.edgetx.org/edgetx_2.5/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/getusage.md)
- [getValue(source)](https://luadoc.edgetx.org/edgetx_2.5/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/getvalue.md)
- [getVersion()](https://luadoc.edgetx.org/edgetx_2.5/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/getversion.md)
- [killEvents(key)](https://luadoc.edgetx.org/edgetx_2.5/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/killevents.md)
- [loadScript(file \[, mode\], \[,env\])](https://luadoc.edgetx.org/edgetx_2.5/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/loadscript.md)
- [multiBuffer(address\[,value\])](https://luadoc.edgetx.org/edgetx_2.5/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/multibuffer.md)
- [playDuration(duration \[, hourFormat\])](https://luadoc.edgetx.org/edgetx_2.5/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/playduration.md)
- [playFile(name)](https://luadoc.edgetx.org/edgetx_2.5/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/playfile.md)
- [playHaptic(duration, pause \[, flags\])](https://luadoc.edgetx.org/edgetx_2.5/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/playhaptic.md)
- [playNumber(value, unit \[, attributes\])](https://luadoc.edgetx.org/edgetx_2.5/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/playnumber.md)
- [playTone(frequency, duration, pause \[, flags \[, freqIncr\]\])](https://luadoc.edgetx.org/edgetx_2.5/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/playtone.md)
- [popupConfirmation(title, message, event)](https://luadoc.edgetx.org/edgetx_2.5/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/popupconfirmation.md)
- [popupInput(title, event, input, min, max)](https://luadoc.edgetx.org/edgetx_2.5/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/popupinput.md)
- [popupWarning(title, event)](https://luadoc.edgetx.org/edgetx_2.5/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/popupwarning.md)
- [resetGlobalTimer(\[type\])](https://luadoc.edgetx.org/edgetx_2.5/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/resetglobaltimer.md)
- [serialRead(\[num\])](https://luadoc.edgetx.org/edgetx_2.5/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/serialread.md)
- [serialWrite(str)](https://luadoc.edgetx.org/edgetx_2.5/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/serialwrite.md)
- [setSerialBaudrate(baudrate)](https://luadoc.edgetx.org/edgetx_2.5/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/setserialbaudrate.md)
- [setTelemetryValue(id, subID, instance, value \[, unit \[, precision \[, name\]\]\])](https://luadoc.edgetx.org/edgetx_2.5/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/settelemetryvalue.md)
- [sportTelemetryPop()](https://luadoc.edgetx.org/edgetx_2.5/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/sporttelemetrypop.md)
- [sportTelemetryPush()](https://luadoc.edgetx.org/edgetx_2.5/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/sporttelemetrypush.md)
- [Model Functions](https://luadoc.edgetx.org/edgetx_2.5/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model.md)
- [model.defaultInputs()](https://luadoc.edgetx.org/edgetx_2.5/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/defaultinputs.md)
- [model.deleteFlightModes()](https://luadoc.edgetx.org/edgetx_2.5/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/deleteflightmodes.md)
- [model.deleteInput(input, line)](https://luadoc.edgetx.org/edgetx_2.5/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/deleteinput.md)
- [model.deleteInputs()](https://luadoc.edgetx.org/edgetx_2.5/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/deleteinputs.md)
- [model.deleteMix(channel, line)](https://luadoc.edgetx.org/edgetx_2.5/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/deletemix.md)
- [model.deleteMixes()](https://luadoc.edgetx.org/edgetx_2.5/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/deletemixes.md)
- [model.getCurve(curve)](https://luadoc.edgetx.org/edgetx_2.5/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/getcurve.md)
- [model.getCustomFunction(function)](https://luadoc.edgetx.org/edgetx_2.5/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/getcustomfunction.md)
- [model.getFlightMode(index)](https://luadoc.edgetx.org/edgetx_2.5/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/getflightmode.md)
- [model.getGlobalVariable(index, flight\_mode)](https://luadoc.edgetx.org/edgetx_2.5/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/getglobalvariable.md)
- [model.getInfo()](https://luadoc.edgetx.org/edgetx_2.5/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/getinfo.md)
- [model.getInput(input, line)](https://luadoc.edgetx.org/edgetx_2.5/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/getinput.md)
- [model.getInputsCount(input)](https://luadoc.edgetx.org/edgetx_2.5/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/getinputscount.md)
- [model.getLogicalSwitch(switch)](https://luadoc.edgetx.org/edgetx_2.5/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/getlogicalswitch.md)
- [model.getMix(channel, line)](https://luadoc.edgetx.org/edgetx_2.5/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/getmix.md)
- [model.getMixesCount(channel)](https://luadoc.edgetx.org/edgetx_2.5/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/getmixescount.md)
- [model.getModule(index)](https://luadoc.edgetx.org/edgetx_2.5/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/getmodule.md)
- [model.getOutput(index)](https://luadoc.edgetx.org/edgetx_2.5/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/getoutput.md)
- [model.getSensor(sensor)](https://luadoc.edgetx.org/edgetx_2.5/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/getsensor.md)
- [model.getTimer(timer)](https://luadoc.edgetx.org/edgetx_2.5/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/gettimer.md)
- [model.insertInput(input, line, value)](https://luadoc.edgetx.org/edgetx_2.5/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/insertinput.md)
- [model.insertMix(channel, line, value)](https://luadoc.edgetx.org/edgetx_2.5/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/insertmix.md)
- [model.resetSensor(sensor)](https://luadoc.edgetx.org/edgetx_2.5/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/resetsensor.md)
- [model.resetTimer(timer)](https://luadoc.edgetx.org/edgetx_2.5/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/resettimer.md)
- [model.setCurve(curve, params)](https://luadoc.edgetx.org/edgetx_2.5/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/setcurve.md)
- [model.setCustomFunction(function, value)](https://luadoc.edgetx.org/edgetx_2.5/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/setcustomfunction.md)
- [model.setFlightMode(index, params)](https://luadoc.edgetx.org/edgetx_2.5/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/setflightmode.md)
- [model.setGlobalVariable(index, flight\_mode, value)](https://luadoc.edgetx.org/edgetx_2.5/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/setglobalvariable.md)
- [model.setInfo(value)](https://luadoc.edgetx.org/edgetx_2.5/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/setinfo.md)
- [model.setLogicalSwitch(switch, value)](https://luadoc.edgetx.org/edgetx_2.5/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/setlogicalswitch.md)
- [model.setModule(index, value)](https://luadoc.edgetx.org/edgetx_2.5/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/setmodule.md)
- [model.setOutput(index, value)](https://luadoc.edgetx.org/edgetx_2.5/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/setoutput.md)
- [model.setTimer(timer, value)](https://luadoc.edgetx.org/edgetx_2.5/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/settimer.md)
- [Lcd Functions](https://luadoc.edgetx.org/edgetx_2.5/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd.md)
- [Lcd Functions Overview](https://luadoc.edgetx.org/edgetx_2.5/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/lcd_functions-overview.md)
- [lcd.RGB(r, g, b | rgb)](https://luadoc.edgetx.org/edgetx_2.5/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/rgb.md)
- [lcd.clear(\[color\])](https://luadoc.edgetx.org/edgetx_2.5/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/clear.md)
- [lcd.drawAnnulus(x, y, r1, r2, start, end \[, flags\])](https://luadoc.edgetx.org/edgetx_2.5/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/drawannulus.md)
- [lcd.drawArc(x, y, r, start, end \[, flags\])](https://luadoc.edgetx.org/edgetx_2.5/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/drawarc.md)
- [lcd.drawBitmap(bitmap, x, y \[, scale\])](https://luadoc.edgetx.org/edgetx_2.5/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/drawbitmap.md)
- [lcd.drawChannel(x, y, source, flags)](https://luadoc.edgetx.org/edgetx_2.5/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/drawchannel.md)
- [lcd.drawCircle(x, y, r \[, flags\])](https://luadoc.edgetx.org/edgetx_2.5/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/drawcircle.md)
- [lcd.drawCombobox(x, y, w, list, idx \[, flags\])](https://luadoc.edgetx.org/edgetx_2.5/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/drawcombobox.md)
- [lcd.drawFilledCircle(x, y, r \[, flags\])](https://luadoc.edgetx.org/edgetx_2.5/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/drawfilledcircle.md)
- [lcd.drawFilledRectangle(x, y, w, h \[, flags\])](https://luadoc.edgetx.org/edgetx_2.5/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/drawfilledrectangle.md)
- [lcd.drawFilledTriangle(x1, y1, x2, y2, x3, y3 \[, flags\])](https://luadoc.edgetx.org/edgetx_2.5/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/drawfilledtriangle.md)
- [lcd.drawGauge(x, y, w, h, fill, maxfill \[, flags\])](https://luadoc.edgetx.org/edgetx_2.5/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/drawgauge.md)
- [lcd.drawHudRectangle(pitch, roll, xmin, xmax, ymin, ymax \[, flags\])](https://luadoc.edgetx.org/edgetx_2.5/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/drawhudrectangle.md)
- [lcd.drawLine(x1, y1, x2, y2, pattern, flags)](https://luadoc.edgetx.org/edgetx_2.5/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/drawline.md)
- [lcd.drawLineWithClipping(x1, y1, x2, y2, xmin, xmax, ymin, ymax, pattern \[, flags\])](https://luadoc.edgetx.org/edgetx_2.5/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/drawlinewithclipping.md)
- [lcd.drawNumber(x, y, value \[, flags \[, inversColor\]\])](https://luadoc.edgetx.org/edgetx_2.5/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/drawnumber.md)
- [lcd.drawPie(x, y, r, start, end \[, flags\])](https://luadoc.edgetx.org/edgetx_2.5/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/drawpie.md)
- [lcd.drawPixmap(x, y, name)](https://luadoc.edgetx.org/edgetx_2.5/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/drawpixmap.md)
- [lcd.drawPoint(x, y)](https://luadoc.edgetx.org/edgetx_2.5/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://luadoc.edgetx.org/edgetx_2.5/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/drawrectangle.md)
- [lcd.drawScreenTitle(title, page, pages)](https://luadoc.edgetx.org/edgetx_2.5/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/drawscreentitle.md)
- [lcd.drawSource(x, y, source \[, flags\])](https://luadoc.edgetx.org/edgetx_2.5/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/drawsource.md)
- [lcd.drawSwitch(x, y, switch, flags)](https://luadoc.edgetx.org/edgetx_2.5/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/drawswitch.md)
- [lcd.drawText(x, y, text \[, flags \[, inversColor\]\])](https://luadoc.edgetx.org/edgetx_2.5/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/drawtext.md)
- [lcd.drawTextLines(x, y, w, h, text \[, flags\])](https://luadoc.edgetx.org/edgetx_2.5/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/lcd.drawtextlines-x-y-w-h-text-flags.md)
- [lcd.drawTimer(x, y, value \[, flags \[, inversColor\]\])](https://luadoc.edgetx.org/edgetx_2.5/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/drawtimer.md)
- [lcd.drawTriangle(x1, y1, x2, y2, x3, y3 \[, flags\])](https://luadoc.edgetx.org/edgetx_2.5/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/drawtriangle.md)
- [lcd.exitFullScreen()](https://luadoc.edgetx.org/edgetx_2.5/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/lcd.exitfullscreen.md)
- [lcd.getColor(flags)](https://luadoc.edgetx.org/edgetx_2.5/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/getcolor.md)
- [lcd.getLastLeftPos()](https://luadoc.edgetx.org/edgetx_2.5/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/getlastleftpos.md)
- [lcd.getLastPos()](https://luadoc.edgetx.org/edgetx_2.5/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/getlastpos.md)
- [lcd.getLastRightPos()](https://luadoc.edgetx.org/edgetx_2.5/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/getlastrightpos.md)
- [lcd.refresh()](https://luadoc.edgetx.org/edgetx_2.5/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/refresh.md)
- [lcd.resetBacklightTimeout()](https://luadoc.edgetx.org/edgetx_2.5/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/resetbacklighttimeout.md)
- [lcd.setColor(colorIndex, color)](https://luadoc.edgetx.org/edgetx_2.5/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/setcolor.md)
- [lcd.sizeText(text \[, flags\])](https://luadoc.edgetx.org/edgetx_2.5/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/sizetext.md)
- [Bitmap Functions](https://luadoc.edgetx.org/edgetx_2.5/part_iii_-_opentx_lua_api_reference/bitmap-functions-less-than-greater-than-luadoc-begin-bitmap.md)
- [Bitmap.getSize(name)](https://luadoc.edgetx.org/edgetx_2.5/part_iii_-_opentx_lua_api_reference/bitmap-functions-less-than-greater-than-luadoc-begin-bitmap/getsize.md)
- [Bitmap.open(name)](https://luadoc.edgetx.org/edgetx_2.5/part_iii_-_opentx_lua_api_reference/bitmap-functions-less-than-greater-than-luadoc-begin-bitmap/open.md)
- [Filesystem](https://luadoc.edgetx.org/edgetx_2.5/part_iii_-_opentx_lua_api_reference/filesystem.md)
- [dir(directory)](https://luadoc.edgetx.org/edgetx_2.5/part_iii_-_opentx_lua_api_reference/filesystem/dir-directory.md)
- [fstat(path)](https://luadoc.edgetx.org/edgetx_2.5/part_iii_-_opentx_lua_api_reference/filesystem/fstat-path.md)
- [Part IV - Advanced Topics](https://luadoc.edgetx.org/edgetx_2.5/part_iv_-_advanced_topics.md)
- [Lua data sharing across scripts](https://luadoc.edgetx.org/edgetx_2.5/part_iv_-_advanced_topics/lua_data_sharing_across_scripts.md)
- [Debugging techniques](https://luadoc.edgetx.org/edgetx_2.5/part_iv_-_advanced_topics/debugging_techniques.md)
- [Speed/memory optimizaton tricks](https://luadoc.edgetx.org/edgetx_2.5/part_iv_-_advanced_topics/optimization_tricks.md)
- [Appendix](https://luadoc.edgetx.org/edgetx_2.5/appendix.md)
- [Fonts](https://luadoc.edgetx.org/edgetx_2.5/appendix/fonts.md)
- [Units](https://luadoc.edgetx.org/edgetx_2.5/appendix/units.md)

## 2.6

- [EdgeTX 2.6 Lua Reference Guide](https://luadoc.edgetx.org/edgetx-2.6/readme.md)
- [Introduction](https://luadoc.edgetx.org/edgetx-2.6/introduction.md)
- [Acknowledgments](https://luadoc.edgetx.org/edgetx-2.6/introduction/acknowledgments.md)
- [Getting Started](https://luadoc.edgetx.org/edgetx-2.6/introduction/getting_started.md)
- [Part I - Script Type Overview](https://luadoc.edgetx.org/edgetx-2.6/part_i_-_script_type_overview.md): This section introduces the types of Lua scripts supported by EdgeTX and how they may be used.
- [Custom (Mixer) Scripts](https://luadoc.edgetx.org/edgetx-2.6/part_i_-_script_type_overview/mix.md)
- [Telemetry Scripts](https://luadoc.edgetx.org/edgetx-2.6/part_i_-_script_type_overview/telemetry.md)
- [One-Time Scripts](https://luadoc.edgetx.org/edgetx-2.6/part_i_-_script_type_overview/one-time_scripts.md)
- [Wizard Script](https://luadoc.edgetx.org/edgetx-2.6/part_i_-_script_type_overview/wizard.md)
- [Function Scripts](https://luadoc.edgetx.org/edgetx-2.6/part_i_-_script_type_overview/function_scripts.md)
- [Widget Scripts](https://luadoc.edgetx.org/edgetx-2.6/part_i_-_script_type_overview/widget_scripts.md)
- [Part II - EdgeTX Lua API Programming Guide](https://luadoc.edgetx.org/edgetx-2.6/part_ii_-_opentx_lua_api_programming_guide.md)
- [Lua Basics](https://luadoc.edgetx.org/edgetx-2.6/part_ii_-_opentx_lua_api_programming_guide/lua-basics.md): Lua is a small but powerful language. This section will explain a few of the most important concepts.
- [Loading Code Modules Dynamically](https://luadoc.edgetx.org/edgetx-2.6/part_ii_-_opentx_lua_api_programming_guide/loading-code-modules-dynamically.md): Lua makes it easy to load and unload code modules on the fly, to save memory or to provide program extensions.
- [Saving Memory](https://luadoc.edgetx.org/edgetx-2.6/part_ii_-_opentx_lua_api_programming_guide/saving-memory.md): This chapter will show you some ways that large script projects can be fitted into the limited memory of our radios.
- [Using Key and Touch Events](https://luadoc.edgetx.org/edgetx-2.6/part_ii_-_opentx_lua_api_programming_guide/using-key-and-touch-events.md): This section will discuss how interactive scripts receiving user inputs via key and touch events can be created.
- [Drawing Flags and Colors](https://luadoc.edgetx.org/edgetx-2.6/part_ii_-_opentx_lua_api_programming_guide/drawing-flags-and-colors.md): This section will give some technical details for radios with a color screen.
- [Data Exchange with the EdgeTX Model Setup](https://luadoc.edgetx.org/edgetx-2.6/part_ii_-_opentx_lua_api_programming_guide/data-exchange-with-the-edgetx-model-setup.md): An EdgeTX model has several data components that can be exchanged with Lua scripts. This section gives an overview.
- [Included Lua Libraries](https://luadoc.edgetx.org/edgetx-2.6/part_ii_-_opentx_lua_api_programming_guide/included_lua_libraries.md)
- [io Library](https://luadoc.edgetx.org/edgetx-2.6/part_ii_-_opentx_lua_api_programming_guide/included_lua_libraries/io-library.md)
- [io.open(filename \[, mode\])](https://luadoc.edgetx.org/edgetx-2.6/part_ii_-_opentx_lua_api_programming_guide/included_lua_libraries/io-library/io.open.md)
- [io.close(file)](https://luadoc.edgetx.org/edgetx-2.6/part_ii_-_opentx_lua_api_programming_guide/included_lua_libraries/io-library/io.close.md)
- [io.read()](https://luadoc.edgetx.org/edgetx-2.6/part_ii_-_opentx_lua_api_programming_guide/included_lua_libraries/io-library/io.read.md)
- [io.write()](https://luadoc.edgetx.org/edgetx-2.6/part_ii_-_opentx_lua_api_programming_guide/included_lua_libraries/io-library/io.write.md)
- [io.seek()](https://luadoc.edgetx.org/edgetx-2.6/part_ii_-_opentx_lua_api_programming_guide/included_lua_libraries/io-library/io.seek.md)
- [Part III - EdgeTX Lua API Reference](https://luadoc.edgetx.org/edgetx-2.6/part_iii_-_opentx_lua_api_reference.md)
- [Constants](https://luadoc.edgetx.org/edgetx-2.6/part_iii_-_opentx_lua_api_reference/constants.md): This section describes various constants that are provided for Lua by EdgeTX.
- [Key Event Constants](https://luadoc.edgetx.org/edgetx-2.6/part_iii_-_opentx_lua_api_reference/constants/key_events.md): This page describes the value that is passed to scripts in the event parameter. It is used in Telemetry and One-Time scripts, as well as widget scripts in full screen mode.
- [Touch Event Constants](https://luadoc.edgetx.org/edgetx-2.6/part_iii_-_opentx_lua_api_reference/constants/touch-event-constants.md): In addition to the key events described in the previous section, radios with a color touch screen also provide touch events to the widget scripts.
- [Flags and Pattern Constants](https://luadoc.edgetx.org/edgetx-2.6/part_iii_-_opentx_lua_api_reference/constants/flags-and-pattern-constants.md): Many of the lcd functions accept parameters named flags and patterns. The names and their meanings are described below.
- [Color Constants](https://luadoc.edgetx.org/edgetx-2.6/part_iii_-_opentx_lua_api_reference/constants/color-constants.md): On radios with color display, a color may be added to the flags described above.
- [Special Character Constants](https://luadoc.edgetx.org/edgetx-2.6/part_iii_-_opentx_lua_api_reference/constants/special-character-constants.md): The radio's special characters can be used with the following text constants.
- [Screen Constants](https://luadoc.edgetx.org/edgetx-2.6/part_iii_-_opentx_lua_api_reference/constants/screen-constants.md)
- [Logical Switch Function Constants](https://luadoc.edgetx.org/edgetx-2.6/part_iii_-_opentx_lua_api_reference/constants/logical-switch-function-constants.md): These constants give the type of logical switch function.
- [Special Function Constants](https://luadoc.edgetx.org/edgetx-2.6/part_iii_-_opentx_lua_api_reference/constants/special-function-constants.md): These constants determine the type of a Special Function
- [General Functions](https://luadoc.edgetx.org/edgetx-2.6/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general.md)
- [GREY()](https://luadoc.edgetx.org/edgetx-2.6/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/grey.md)
- [accessTelemetryPush()](https://luadoc.edgetx.org/edgetx-2.6/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/accesstelemetrypush.md)
- [chdir(directory)](https://luadoc.edgetx.org/edgetx-2.6/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/chdir.md)
- [crossfireTelemetryPop()](https://luadoc.edgetx.org/edgetx-2.6/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/crossfiretelemetrypop.md)
- [crossfireTelemetryPush()](https://luadoc.edgetx.org/edgetx-2.6/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/crossfiretelemetrypush.md)
- [defaultChannel(stick)](https://luadoc.edgetx.org/edgetx-2.6/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/defaultchannel.md)
- [defaultStick(channel)](https://luadoc.edgetx.org/edgetx-2.6/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/defaultstick.md)
- [getAvailableMemory()](https://luadoc.edgetx.org/edgetx-2.6/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/getavailablememory.md)
- [getDateTime()](https://luadoc.edgetx.org/edgetx-2.6/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/getdatetime.md)
- [getFieldInfo(source)](https://luadoc.edgetx.org/edgetx-2.6/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/getfieldinfo.md)
- [getFlightMode(mode)](https://luadoc.edgetx.org/edgetx-2.6/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/getflightmode.md)
- [getGeneralSettings()](https://luadoc.edgetx.org/edgetx-2.6/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/getgeneralsettings.md)
- [getGlobalTimer()](https://luadoc.edgetx.org/edgetx-2.6/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/getglobaltimer.md)
- [getLogicalSwitchValue(id)](https://luadoc.edgetx.org/edgetx-2.6/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/getlogicalswitchvalue-id.md)
- [getRAS()](https://luadoc.edgetx.org/edgetx-2.6/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/getras.md)
- [getRSSI()](https://luadoc.edgetx.org/edgetx-2.6/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/getrssi.md)
- [getRotEncSpeed()](https://luadoc.edgetx.org/edgetx-2.6/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/getrotencspeed.md)
- [getRtcTime()](https://luadoc.edgetx.org/edgetx-2.6/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/getrtctime.md)
- [getShmVar(id)](https://luadoc.edgetx.org/edgetx-2.6/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/getshmvar-id.md)
- [getSourceIndex(sourceName)](https://luadoc.edgetx.org/edgetx-2.6/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/getsourceindex-sourcename.md)
- [getSourceName(sourceIndex)](https://luadoc.edgetx.org/edgetx-2.6/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/getsourcename-sourceindex.md)
- [getSwitchIndex(positionName)](https://luadoc.edgetx.org/edgetx-2.6/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/getswitchindex-positionname.md)
- [getSwitchName(switchIndex)](https://luadoc.edgetx.org/edgetx-2.6/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/getswitchname-switchindex.md)
- [getSwitchValue(switchIndex)](https://luadoc.edgetx.org/edgetx-2.6/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/getswitchvalue-switchindex.md)
- [getTime()](https://luadoc.edgetx.org/edgetx-2.6/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/gettime.md)
- [getTxGPS()](https://luadoc.edgetx.org/edgetx-2.6/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/gettxgps.md)
- [getUsage()](https://luadoc.edgetx.org/edgetx-2.6/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/getusage.md)
- [getValue(source)](https://luadoc.edgetx.org/edgetx-2.6/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/getvalue.md)
- [getVersion()](https://luadoc.edgetx.org/edgetx-2.6/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/getversion.md)
- [killEvents(key)](https://luadoc.edgetx.org/edgetx-2.6/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/killevents.md)
- [loadScript(file \[, mode\], \[,env\])](https://luadoc.edgetx.org/edgetx-2.6/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/loadscript.md)
- [multiBuffer(address\[,value\])](https://luadoc.edgetx.org/edgetx-2.6/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/multibuffer.md)
- [playDuration(duration \[, hourFormat\])](https://luadoc.edgetx.org/edgetx-2.6/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/playduration.md)
- [playFile(name)](https://luadoc.edgetx.org/edgetx-2.6/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/playfile.md)
- [playHaptic(duration, pause \[, flags\])](https://luadoc.edgetx.org/edgetx-2.6/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/playhaptic.md)
- [playNumber(value, unit \[, attributes\])](https://luadoc.edgetx.org/edgetx-2.6/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/playnumber.md)
- [playTone(frequency, duration, pause \[, flags \[, freqIncr\]\])](https://luadoc.edgetx.org/edgetx-2.6/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/playtone.md)
- [popupConfirmation(title, message, event)](https://luadoc.edgetx.org/edgetx-2.6/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/popupconfirmation.md)
- [popupInput(title, event, input, min, max)](https://luadoc.edgetx.org/edgetx-2.6/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/popupinput.md)
- [popupWarning(title, event)](https://luadoc.edgetx.org/edgetx-2.6/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/popupwarning.md)
- [resetGlobalTimer(\[type\])](https://luadoc.edgetx.org/edgetx-2.6/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/resetglobaltimer.md)
- [serialRead(\[num\])](https://luadoc.edgetx.org/edgetx-2.6/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/serialread.md)
- [serialWrite(str)](https://luadoc.edgetx.org/edgetx-2.6/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/serialwrite.md)
- [setSerialBaudrate(baudrate)](https://luadoc.edgetx.org/edgetx-2.6/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/setserialbaudrate.md)
- [setShmVar(id, value)](https://luadoc.edgetx.org/edgetx-2.6/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/setshmvar-id-value.md)
- [setStickySwitch(id, value)](https://luadoc.edgetx.org/edgetx-2.6/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/setstickyswitch-id-value.md)
- [setTelemetryValue(id, subID, instance, value \[, unit \[, precision \[, name\]\]\])](https://luadoc.edgetx.org/edgetx-2.6/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/settelemetryvalue.md)
- [sources(\[first\[, last\]\])](https://luadoc.edgetx.org/edgetx-2.6/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/sources-first-last.md)
- [sportTelemetryPop()](https://luadoc.edgetx.org/edgetx-2.6/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/sporttelemetrypop.md)
- [sportTelemetryPush()](https://luadoc.edgetx.org/edgetx-2.6/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/sporttelemetrypush.md)
- [switches(\[first\[, last\]\])](https://luadoc.edgetx.org/edgetx-2.6/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/switches-first-last.md)
- [Model Functions](https://luadoc.edgetx.org/edgetx-2.6/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model.md)
- [model.defaultInputs()](https://luadoc.edgetx.org/edgetx-2.6/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/defaultinputs.md)
- [model.deleteFlightModes()](https://luadoc.edgetx.org/edgetx-2.6/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/deleteflightmodes.md)
- [model.deleteInput(input, line)](https://luadoc.edgetx.org/edgetx-2.6/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/deleteinput.md)
- [model.deleteInputs()](https://luadoc.edgetx.org/edgetx-2.6/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/deleteinputs.md)
- [model.deleteMix(channel, line)](https://luadoc.edgetx.org/edgetx-2.6/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/deletemix.md)
- [model.deleteMixes()](https://luadoc.edgetx.org/edgetx-2.6/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/deletemixes.md)
- [model.getCurve(curve)](https://luadoc.edgetx.org/edgetx-2.6/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/getcurve.md)
- [model.getCustomFunction(function)](https://luadoc.edgetx.org/edgetx-2.6/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/getcustomfunction.md)
- [model.getFlightMode(index)](https://luadoc.edgetx.org/edgetx-2.6/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/getflightmode.md)
- [model.getGlobalVariable(index, flight\_mode)](https://luadoc.edgetx.org/edgetx-2.6/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/getglobalvariable.md)
- [model.getInfo()](https://luadoc.edgetx.org/edgetx-2.6/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/getinfo.md)
- [model.getInput(input, line)](https://luadoc.edgetx.org/edgetx-2.6/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/getinput.md)
- [model.getInputsCount(input)](https://luadoc.edgetx.org/edgetx-2.6/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/getinputscount.md)
- [model.getLogicalSwitch(switch)](https://luadoc.edgetx.org/edgetx-2.6/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/getlogicalswitch.md)
- [model.getMix(channel, line)](https://luadoc.edgetx.org/edgetx-2.6/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/getmix.md)
- [model.getMixesCount(channel)](https://luadoc.edgetx.org/edgetx-2.6/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/getmixescount.md)
- [model.getModule(index)](https://luadoc.edgetx.org/edgetx-2.6/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/getmodule.md)
- [model.getOutput(index)](https://luadoc.edgetx.org/edgetx-2.6/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/getoutput.md)
- [model.getSensor(sensor)](https://luadoc.edgetx.org/edgetx-2.6/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/getsensor.md)
- [model.getTimer(timer)](https://luadoc.edgetx.org/edgetx-2.6/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/gettimer.md)
- [model.insertInput(input, line, value)](https://luadoc.edgetx.org/edgetx-2.6/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/insertinput.md)
- [model.insertMix(channel, line, value)](https://luadoc.edgetx.org/edgetx-2.6/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/insertmix.md)
- [model.resetSensor(sensor)](https://luadoc.edgetx.org/edgetx-2.6/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/resetsensor.md)
- [model.resetTimer(timer)](https://luadoc.edgetx.org/edgetx-2.6/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/resettimer.md)
- [model.setCurve(curve, params)](https://luadoc.edgetx.org/edgetx-2.6/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/setcurve.md)
- [model.setCustomFunction(function, value)](https://luadoc.edgetx.org/edgetx-2.6/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/setcustomfunction.md)
- [model.setFlightMode(index, params)](https://luadoc.edgetx.org/edgetx-2.6/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/setflightmode.md)
- [model.setGlobalVariable(index, flight\_mode, value)](https://luadoc.edgetx.org/edgetx-2.6/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/setglobalvariable.md)
- [model.setInfo(value)](https://luadoc.edgetx.org/edgetx-2.6/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/setinfo.md)
- [model.setLogicalSwitch(switch, value)](https://luadoc.edgetx.org/edgetx-2.6/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/setlogicalswitch.md)
- [model.setModule(index, value)](https://luadoc.edgetx.org/edgetx-2.6/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/setmodule.md)
- [model.setOutput(index, value)](https://luadoc.edgetx.org/edgetx-2.6/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/setoutput.md)
- [model.setTimer(timer, value)](https://luadoc.edgetx.org/edgetx-2.6/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/settimer.md)
- [Lcd Functions](https://luadoc.edgetx.org/edgetx-2.6/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd.md)
- [Lcd Functions Overview](https://luadoc.edgetx.org/edgetx-2.6/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/lcd_functions-overview.md)
- [lcd.RGB(r, g, b | rgb)](https://luadoc.edgetx.org/edgetx-2.6/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/rgb.md)
- [lcd.clear(\[color\])](https://luadoc.edgetx.org/edgetx-2.6/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/clear.md)
- [lcd.drawAnnulus(x, y, r1, r2, start, end \[, flags\])](https://luadoc.edgetx.org/edgetx-2.6/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/drawannulus.md)
- [lcd.drawArc(x, y, r, start, end \[, flags\])](https://luadoc.edgetx.org/edgetx-2.6/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/drawarc.md)
- [lcd.drawBitmap(bitmap, x, y \[, scale\])](https://luadoc.edgetx.org/edgetx-2.6/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/drawbitmap.md)
- [lcd.drawChannel(x, y, source, flags)](https://luadoc.edgetx.org/edgetx-2.6/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/drawchannel.md)
- [lcd.drawCircle(x, y, r \[, flags\])](https://luadoc.edgetx.org/edgetx-2.6/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/drawcircle.md)
- [lcd.drawCombobox(x, y, w, list, idx \[, flags\])](https://luadoc.edgetx.org/edgetx-2.6/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/drawcombobox.md)
- [lcd.drawFilledCircle(x, y, r \[, flags\])](https://luadoc.edgetx.org/edgetx-2.6/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/drawfilledcircle.md)
- [lcd.drawFilledRectangle(x, y, w, h \[, flags\])](https://luadoc.edgetx.org/edgetx-2.6/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/drawfilledrectangle.md)
- [lcd.drawFilledTriangle(x1, y1, x2, y2, x3, y3 \[, flags\])](https://luadoc.edgetx.org/edgetx-2.6/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/drawfilledtriangle.md)
- [lcd.drawGauge(x, y, w, h, fill, maxfill \[, flags\])](https://luadoc.edgetx.org/edgetx-2.6/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/drawgauge.md)
- [lcd.drawHudRectangle(pitch, roll, xmin, xmax, ymin, ymax \[, flags\])](https://luadoc.edgetx.org/edgetx-2.6/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/drawhudrectangle.md)
- [lcd.drawLine(x1, y1, x2, y2, pattern, flags)](https://luadoc.edgetx.org/edgetx-2.6/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/drawline.md)
- [lcd.drawLineWithClipping(x1, y1, x2, y2, xmin, xmax, ymin, ymax, pattern \[, flags\])](https://luadoc.edgetx.org/edgetx-2.6/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/drawlinewithclipping.md)
- [lcd.drawNumber(x, y, value \[, flags \[, inversColor\]\])](https://luadoc.edgetx.org/edgetx-2.6/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/drawnumber.md)
- [lcd.drawPie(x, y, r, start, end \[, flags\])](https://luadoc.edgetx.org/edgetx-2.6/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/drawpie.md)
- [lcd.drawPixmap(x, y, name)](https://luadoc.edgetx.org/edgetx-2.6/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/drawpixmap.md)
- [lcd.drawPoint(x, y)](https://luadoc.edgetx.org/edgetx-2.6/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://luadoc.edgetx.org/edgetx-2.6/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/drawrectangle.md)
- [lcd.drawScreenTitle(title, page, pages)](https://luadoc.edgetx.org/edgetx-2.6/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/drawscreentitle.md)
- [lcd.drawSource(x, y, source \[, flags\])](https://luadoc.edgetx.org/edgetx-2.6/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/drawsource.md)
- [lcd.drawSwitch(x, y, switch, flags)](https://luadoc.edgetx.org/edgetx-2.6/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/drawswitch.md)
- [lcd.drawText(x, y, text \[, flags \[, inversColor\]\])](https://luadoc.edgetx.org/edgetx-2.6/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/drawtext.md)
- [lcd.drawTextLines(x, y, w, h, text \[, flags\])](https://luadoc.edgetx.org/edgetx-2.6/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/lcd.drawtextlines-x-y-w-h-text-flags.md)
- [lcd.drawTimer(x, y, value \[, flags \[, inversColor\]\])](https://luadoc.edgetx.org/edgetx-2.6/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/drawtimer.md)
- [lcd.drawTriangle(x1, y1, x2, y2, x3, y3 \[, flags\])](https://luadoc.edgetx.org/edgetx-2.6/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/drawtriangle.md)
- [lcd.exitFullScreen()](https://luadoc.edgetx.org/edgetx-2.6/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/lcd.exitfullscreen.md)
- [lcd.getColor(flags)](https://luadoc.edgetx.org/edgetx-2.6/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/getcolor.md)
- [lcd.getLastLeftPos()](https://luadoc.edgetx.org/edgetx-2.6/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/getlastleftpos.md)
- [lcd.getLastPos()](https://luadoc.edgetx.org/edgetx-2.6/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/getlastpos.md)
- [lcd.getLastRightPos()](https://luadoc.edgetx.org/edgetx-2.6/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/getlastrightpos.md)
- [lcd.refresh()](https://luadoc.edgetx.org/edgetx-2.6/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/refresh.md)
- [lcd.resetBacklightTimeout()](https://luadoc.edgetx.org/edgetx-2.6/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/resetbacklighttimeout.md)
- [lcd.setColor(colorIndex, color)](https://luadoc.edgetx.org/edgetx-2.6/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/setcolor.md)
- [lcd.sizeText(text \[, flags\])](https://luadoc.edgetx.org/edgetx-2.6/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/sizetext.md)
- [Bitmap Functions](https://luadoc.edgetx.org/edgetx-2.6/part_iii_-_opentx_lua_api_reference/bitmap-functions-less-than-greater-than-luadoc-begin-bitmap.md)
- [Bitmap.getSize(name)](https://luadoc.edgetx.org/edgetx-2.6/part_iii_-_opentx_lua_api_reference/bitmap-functions-less-than-greater-than-luadoc-begin-bitmap/getsize.md)
- [Bitmap.open(name)](https://luadoc.edgetx.org/edgetx-2.6/part_iii_-_opentx_lua_api_reference/bitmap-functions-less-than-greater-than-luadoc-begin-bitmap/open.md)
- [Filesystem](https://luadoc.edgetx.org/edgetx-2.6/part_iii_-_opentx_lua_api_reference/filesystem.md)
- [dir(directory)](https://luadoc.edgetx.org/edgetx-2.6/part_iii_-_opentx_lua_api_reference/filesystem/dir-directory.md)
- [fstat(path)](https://luadoc.edgetx.org/edgetx-2.6/part_iii_-_opentx_lua_api_reference/filesystem/fstat-path.md)
- [Part IV - Advanced Topics](https://luadoc.edgetx.org/edgetx-2.6/part_iv_-_advanced_topics.md)
- [Lua data sharing across scripts](https://luadoc.edgetx.org/edgetx-2.6/part_iv_-_advanced_topics/lua_data_sharing_across_scripts.md)
- [Debugging techniques](https://luadoc.edgetx.org/edgetx-2.6/part_iv_-_advanced_topics/debugging_techniques.md)
- [Speed/memory optimizaton tricks](https://luadoc.edgetx.org/edgetx-2.6/part_iv_-_advanced_topics/optimization_tricks.md)
- [Appendix](https://luadoc.edgetx.org/edgetx-2.6/appendix.md)
- [Fonts](https://luadoc.edgetx.org/edgetx-2.6/appendix/fonts.md)
- [Units](https://luadoc.edgetx.org/edgetx-2.6/appendix/units.md)

## 2.7

- [EdgeTX 2.7 Lua Reference Guide](https://luadoc.edgetx.org/edgetx-v2.7/readme.md)
- [Introduction](https://luadoc.edgetx.org/edgetx-v2.7/introduction.md)
- [Acknowledgments](https://luadoc.edgetx.org/edgetx-v2.7/introduction/acknowledgments.md)
- [Getting Started](https://luadoc.edgetx.org/edgetx-v2.7/introduction/getting_started.md)
- [Part I - Script Type Overview](https://luadoc.edgetx.org/edgetx-v2.7/part_i_-_script_type_overview.md): This section introduces the types of Lua scripts supported by EdgeTX and how they may be used.
- [Custom (Mixer) Scripts](https://luadoc.edgetx.org/edgetx-v2.7/part_i_-_script_type_overview/mix.md)
- [Telemetry Scripts](https://luadoc.edgetx.org/edgetx-v2.7/part_i_-_script_type_overview/telemetry.md)
- [One-Time Scripts](https://luadoc.edgetx.org/edgetx-v2.7/part_i_-_script_type_overview/one-time_scripts.md)
- [Function Scripts](https://luadoc.edgetx.org/edgetx-v2.7/part_i_-_script_type_overview/function_scripts.md)
- [Widget Scripts](https://luadoc.edgetx.org/edgetx-v2.7/part_i_-_script_type_overview/widget_scripts.md)
- [Part II - EdgeTX Lua API Programming Guide](https://luadoc.edgetx.org/edgetx-v2.7/part_ii_-_opentx_lua_api_programming_guide.md)
- [Lua Basics](https://luadoc.edgetx.org/edgetx-v2.7/part_ii_-_opentx_lua_api_programming_guide/lua-basics.md): Lua is a small but powerful language. This section will explain a few of the most important concepts.
- [Loading Code Modules Dynamically](https://luadoc.edgetx.org/edgetx-v2.7/part_ii_-_opentx_lua_api_programming_guide/loading-code-modules-dynamically.md): Lua makes it easy to load and unload code modules on the fly, to save memory or to provide program extensions.
- [Saving Memory](https://luadoc.edgetx.org/edgetx-v2.7/part_ii_-_opentx_lua_api_programming_guide/saving-memory.md): This chapter will show you some ways that large script projects can be fitted into the limited memory of our radios.
- [Using Key and Touch Events](https://luadoc.edgetx.org/edgetx-v2.7/part_ii_-_opentx_lua_api_programming_guide/using-key-and-touch-events.md): This section will discuss how interactive scripts receiving user inputs via key and touch events can be created.
- [Drawing Flags and Colors](https://luadoc.edgetx.org/edgetx-v2.7/part_ii_-_opentx_lua_api_programming_guide/drawing-flags-and-colors.md): This section will give some technical details for radios with a color screen.
- [Data Exchange with the EdgeTX Model Setup](https://luadoc.edgetx.org/edgetx-v2.7/part_ii_-_opentx_lua_api_programming_guide/data-exchange-with-the-edgetx-model-setup.md): An EdgeTX model has several data components that can be exchanged with Lua scripts. This section gives an overview.
- [Included Lua Libraries](https://luadoc.edgetx.org/edgetx-v2.7/part_ii_-_opentx_lua_api_programming_guide/included_lua_libraries.md)
- [io Library](https://luadoc.edgetx.org/edgetx-v2.7/part_ii_-_opentx_lua_api_programming_guide/included_lua_libraries/io-library.md)
- [io.open()](https://luadoc.edgetx.org/edgetx-v2.7/part_ii_-_opentx_lua_api_programming_guide/included_lua_libraries/io-library/io.open.md)
- [io.close()](https://luadoc.edgetx.org/edgetx-v2.7/part_ii_-_opentx_lua_api_programming_guide/included_lua_libraries/io-library/io.close.md)
- [io.read()](https://luadoc.edgetx.org/edgetx-v2.7/part_ii_-_opentx_lua_api_programming_guide/included_lua_libraries/io-library/io.read.md)
- [io.write()](https://luadoc.edgetx.org/edgetx-v2.7/part_ii_-_opentx_lua_api_programming_guide/included_lua_libraries/io-library/io.write.md)
- [io.seek()](https://luadoc.edgetx.org/edgetx-v2.7/part_ii_-_opentx_lua_api_programming_guide/included_lua_libraries/io-library/io.seek.md)
- [Part III - EdgeTX Lua API Reference](https://luadoc.edgetx.org/edgetx-v2.7/part_iii_-_opentx_lua_api_reference.md)
- [Constants](https://luadoc.edgetx.org/edgetx-v2.7/part_iii_-_opentx_lua_api_reference/constants.md): This section describes various constants that are provided for Lua by EdgeTX.
- [Key Event Constants](https://luadoc.edgetx.org/edgetx-v2.7/part_iii_-_opentx_lua_api_reference/constants/key_events.md): This page describes the value that is passed to scripts in the event parameter. It is used in Telemetry and One-Time scripts, as well as widget scripts in full screen mode.
- [Touch Event Constants](https://luadoc.edgetx.org/edgetx-v2.7/part_iii_-_opentx_lua_api_reference/constants/touch-event-constants.md): In addition to the key events described in the previous section, radios with a color touch screen also provide touch events to the widget scripts.
- [Flags and Pattern Constants](https://luadoc.edgetx.org/edgetx-v2.7/part_iii_-_opentx_lua_api_reference/constants/flags-and-pattern-constants.md): Many of the lcd functions accept parameters named flags and patterns. The names and their meanings are described below.
- [Color Constants](https://luadoc.edgetx.org/edgetx-v2.7/part_iii_-_opentx_lua_api_reference/constants/color-constants.md): On radios with color display, a color may be added to the flags described above.
- [Special Character Constants](https://luadoc.edgetx.org/edgetx-v2.7/part_iii_-_opentx_lua_api_reference/constants/special-character-constants.md): The radio's special characters can be used with the following text constants.
- [Screen Constants](https://luadoc.edgetx.org/edgetx-v2.7/part_iii_-_opentx_lua_api_reference/constants/screen-constants.md)
- [Logical Switch Function Constants](https://luadoc.edgetx.org/edgetx-v2.7/part_iii_-_opentx_lua_api_reference/constants/logical-switch-function-constants.md): These constants give the type of logical switch function.
- [Special Function Constants](https://luadoc.edgetx.org/edgetx-v2.7/part_iii_-_opentx_lua_api_reference/constants/special-function-constants.md): These constants determine the type of a Special Function
- [General Functions](https://luadoc.edgetx.org/edgetx-v2.7/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general.md)
- [GREY()](https://luadoc.edgetx.org/edgetx-v2.7/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/grey.md)
- [accessTelemetryPush()](https://luadoc.edgetx.org/edgetx-v2.7/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/accesstelemetrypush.md)
- [chdir(directory)](https://luadoc.edgetx.org/edgetx-v2.7/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/chdir.md)
- [crossfireTelemetryPop()](https://luadoc.edgetx.org/edgetx-v2.7/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/crossfiretelemetrypop.md)
- [crossfireTelemetryPush()](https://luadoc.edgetx.org/edgetx-v2.7/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/crossfiretelemetrypush.md)
- [defaultChannel(stick)](https://luadoc.edgetx.org/edgetx-v2.7/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/defaultchannel.md)
- [defaultStick(channel)](https://luadoc.edgetx.org/edgetx-v2.7/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/defaultstick.md)
- [getAvailableMemory()](https://luadoc.edgetx.org/edgetx-v2.7/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/getavailablememory.md)
- [getDateTime()](https://luadoc.edgetx.org/edgetx-v2.7/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/getdatetime.md)
- [getFieldInfo(source)](https://luadoc.edgetx.org/edgetx-v2.7/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/getfieldinfo.md)
- [getFlightMode(mode)](https://luadoc.edgetx.org/edgetx-v2.7/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/getflightmode.md)
- [getGeneralSettings()](https://luadoc.edgetx.org/edgetx-v2.7/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/getgeneralsettings.md)
- [getGlobalTimer()](https://luadoc.edgetx.org/edgetx-v2.7/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/getglobaltimer.md)
- [getLogicalSwitchValue(id)](https://luadoc.edgetx.org/edgetx-v2.7/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/getlogicalswitchvalue-id.md)
- [getRAS()](https://luadoc.edgetx.org/edgetx-v2.7/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/getras.md)
- [getRSSI()](https://luadoc.edgetx.org/edgetx-v2.7/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/getrssi.md)
- [getRotEncSpeed()](https://luadoc.edgetx.org/edgetx-v2.7/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/getrotencspeed.md)
- [getRtcTime()](https://luadoc.edgetx.org/edgetx-v2.7/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/getrtctime.md)
- [getShmVar(id)](https://luadoc.edgetx.org/edgetx-v2.7/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/getshmvar-id.md)
- [getSourceIndex(sourceName)](https://luadoc.edgetx.org/edgetx-v2.7/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/getsourceindex-sourcename.md)
- [getSourceName(sourceIndex)](https://luadoc.edgetx.org/edgetx-v2.7/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/getsourcename-sourceindex.md)
- [getSwitchIndex(positionName)](https://luadoc.edgetx.org/edgetx-v2.7/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/getswitchindex-positionname.md)
- [getSwitchName(switchIndex)](https://luadoc.edgetx.org/edgetx-v2.7/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/getswitchname-switchindex.md)
- [getSwitchValue(switchIndex)](https://luadoc.edgetx.org/edgetx-v2.7/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/getswitchvalue-switchindex.md)
- [getTime()](https://luadoc.edgetx.org/edgetx-v2.7/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/gettime.md)
- [getTxGPS()](https://luadoc.edgetx.org/edgetx-v2.7/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/gettxgps.md)
- [getUsage()](https://luadoc.edgetx.org/edgetx-v2.7/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/getusage.md)
- [getValue(source)](https://luadoc.edgetx.org/edgetx-v2.7/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/getvalue.md)
- [getVersion()](https://luadoc.edgetx.org/edgetx-v2.7/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/getversion.md)
- [ghostTelemetryPop()](https://luadoc.edgetx.org/edgetx-v2.7/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/ghosttelemetrypop.md)
- [ghostTelemetryPush()](https://luadoc.edgetx.org/edgetx-v2.7/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/ghosttelemetrypush.md)
- [killEvents(key)](https://luadoc.edgetx.org/edgetx-v2.7/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/killevents.md)
- [loadScript(file \[, mode\], \[,env\])](https://luadoc.edgetx.org/edgetx-v2.7/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/loadscript.md)
- [multiBuffer(address\[,value\])](https://luadoc.edgetx.org/edgetx-v2.7/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/multibuffer.md)
- [playDuration(duration \[, hourFormat\])](https://luadoc.edgetx.org/edgetx-v2.7/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/playduration.md)
- [playFile(name)](https://luadoc.edgetx.org/edgetx-v2.7/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/playfile.md)
- [playHaptic(duration, pause \[, flags\])](https://luadoc.edgetx.org/edgetx-v2.7/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/playhaptic.md)
- [playNumber(value, unit \[, attributes\])](https://luadoc.edgetx.org/edgetx-v2.7/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/playnumber.md)
- [playTone(frequency, duration, pause \[, flags \[, freqIncr\]\])](https://luadoc.edgetx.org/edgetx-v2.7/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/playtone.md)
- [popupConfirmation(title, message, event)](https://luadoc.edgetx.org/edgetx-v2.7/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/popupconfirmation.md)
- [popupInput(title, event, input, min, max)](https://luadoc.edgetx.org/edgetx-v2.7/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/popupinput.md)
- [popupWarning(title, event)](https://luadoc.edgetx.org/edgetx-v2.7/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/popupwarning.md)
- [resetGlobalTimer(\[type\])](https://luadoc.edgetx.org/edgetx-v2.7/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/resetglobaltimer.md)
- [serialRead(\[num\])](https://luadoc.edgetx.org/edgetx-v2.7/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/serialread.md)
- [serialWrite(str)](https://luadoc.edgetx.org/edgetx-v2.7/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/serialwrite.md)
- [setSerialBaudrate(baudrate)](https://luadoc.edgetx.org/edgetx-v2.7/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/setserialbaudrate.md)
- [setShmVar(id, value)](https://luadoc.edgetx.org/edgetx-v2.7/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/setshmvar-id-value.md)
- [setStickySwitch(id, value)](https://luadoc.edgetx.org/edgetx-v2.7/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/setstickyswitch-id-value.md)
- [setTelemetryValue(id, subID, instance, value \[, unit \[, precision \[, name\]\]\])](https://luadoc.edgetx.org/edgetx-v2.7/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/settelemetryvalue.md)
- [sources(\[first\[, last\]\])](https://luadoc.edgetx.org/edgetx-v2.7/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/sources-first-last.md)
- [switches(\[first\[, last\]\])](https://luadoc.edgetx.org/edgetx-v2.7/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/switches-first-last.md)
- [sportTelemetryPop()](https://luadoc.edgetx.org/edgetx-v2.7/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/sporttelemetrypop.md)
- [sportTelemetryPush()](https://luadoc.edgetx.org/edgetx-v2.7/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/sporttelemetrypush.md)
- [Model Functions](https://luadoc.edgetx.org/edgetx-v2.7/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model.md)
- [model.defaultInputs()](https://luadoc.edgetx.org/edgetx-v2.7/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/defaultinputs.md)
- [model.deleteFlightModes()](https://luadoc.edgetx.org/edgetx-v2.7/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/deleteflightmodes.md)
- [model.deleteInput(input, line)](https://luadoc.edgetx.org/edgetx-v2.7/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/deleteinput.md)
- [model.deleteInputs()](https://luadoc.edgetx.org/edgetx-v2.7/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/deleteinputs.md)
- [model.deleteMix(channel, line)](https://luadoc.edgetx.org/edgetx-v2.7/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/deletemix.md)
- [model.deleteMixes()](https://luadoc.edgetx.org/edgetx-v2.7/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/deletemixes.md)
- [model.getCurve(curve)](https://luadoc.edgetx.org/edgetx-v2.7/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/getcurve.md)
- [model.getCustomFunction(function)](https://luadoc.edgetx.org/edgetx-v2.7/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/getcustomfunction.md)
- [model.getFlightMode(index)](https://luadoc.edgetx.org/edgetx-v2.7/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/getflightmode.md)
- [model.getGlobalVariable(index, flight\_mode)](https://luadoc.edgetx.org/edgetx-v2.7/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/getglobalvariable.md)
- [model.getInfo()](https://luadoc.edgetx.org/edgetx-v2.7/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/getinfo.md)
- [model.getInput(input, line)](https://luadoc.edgetx.org/edgetx-v2.7/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/getinput.md)
- [model.getInputsCount(input)](https://luadoc.edgetx.org/edgetx-v2.7/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/getinputscount.md)
- [model.getLogicalSwitch(switch)](https://luadoc.edgetx.org/edgetx-v2.7/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/getlogicalswitch.md)
- [model.getMix(channel, line)](https://luadoc.edgetx.org/edgetx-v2.7/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/getmix.md)
- [model.getMixesCount(channel)](https://luadoc.edgetx.org/edgetx-v2.7/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/getmixescount.md)
- [model.getModule(index)](https://luadoc.edgetx.org/edgetx-v2.7/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/getmodule.md)
- [model.getOutput(index)](https://luadoc.edgetx.org/edgetx-v2.7/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/getoutput.md)
- [model.getSensor(sensor)](https://luadoc.edgetx.org/edgetx-v2.7/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/getsensor.md)
- [model.getTimer(timer)](https://luadoc.edgetx.org/edgetx-v2.7/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/gettimer.md)
- [model.insertInput(input, line, value)](https://luadoc.edgetx.org/edgetx-v2.7/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/insertinput.md)
- [model.insertMix(channel, line, value)](https://luadoc.edgetx.org/edgetx-v2.7/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/insertmix.md)
- [model.resetSensor(sensor)](https://luadoc.edgetx.org/edgetx-v2.7/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/resetsensor.md)
- [model.resetTimer(timer)](https://luadoc.edgetx.org/edgetx-v2.7/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/resettimer.md)
- [model.setCurve(curve, params)](https://luadoc.edgetx.org/edgetx-v2.7/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/setcurve.md)
- [model.setCustomFunction(function, value)](https://luadoc.edgetx.org/edgetx-v2.7/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/setcustomfunction.md)
- [model.setFlightMode(index, params)](https://luadoc.edgetx.org/edgetx-v2.7/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/setflightmode.md)
- [model.setGlobalVariable(index, flight\_mode, value)](https://luadoc.edgetx.org/edgetx-v2.7/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/setglobalvariable.md)
- [model.setInfo(value)](https://luadoc.edgetx.org/edgetx-v2.7/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/setinfo.md)
- [model.setLogicalSwitch(switch, value)](https://luadoc.edgetx.org/edgetx-v2.7/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/setlogicalswitch.md)
- [model.setModule(index, value)](https://luadoc.edgetx.org/edgetx-v2.7/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/setmodule.md)
- [model.setOutput(index, value)](https://luadoc.edgetx.org/edgetx-v2.7/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/setoutput.md)
- [model.setTimer(timer, value)](https://luadoc.edgetx.org/edgetx-v2.7/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/settimer.md)
- [Lcd Functions](https://luadoc.edgetx.org/edgetx-v2.7/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd.md)
- [Lcd Functions Overview](https://luadoc.edgetx.org/edgetx-v2.7/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/lcd_functions-overview.md)
- [lcd.RGB(r, g, b | rgb)](https://luadoc.edgetx.org/edgetx-v2.7/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/rgb.md)
- [lcd.clear(\[color\])](https://luadoc.edgetx.org/edgetx-v2.7/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/clear.md)
- [lcd.drawAnnulus(x, y, r1, r2, start, end \[, flags\])](https://luadoc.edgetx.org/edgetx-v2.7/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/drawannulus.md)
- [lcd.drawArc(x, y, r, start, end \[, flags\])](https://luadoc.edgetx.org/edgetx-v2.7/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/drawarc.md)
- [lcd.drawBitmap(bitmap, x, y \[, scale\])](https://luadoc.edgetx.org/edgetx-v2.7/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/drawbitmap.md)
- [lcd.drawChannel(x, y, source, flags)](https://luadoc.edgetx.org/edgetx-v2.7/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/drawchannel.md)
- [lcd.drawCircle(x, y, r \[, flags\])](https://luadoc.edgetx.org/edgetx-v2.7/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/drawcircle.md)
- [lcd.drawCombobox(x, y, w, list, idx \[, flags\])](https://luadoc.edgetx.org/edgetx-v2.7/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/drawcombobox.md)
- [lcd.drawFilledCircle(x, y, r \[, flags\])](https://luadoc.edgetx.org/edgetx-v2.7/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/drawfilledcircle.md)
- [lcd.drawFilledRectangle(x, y, w, h \[, flags\])](https://luadoc.edgetx.org/edgetx-v2.7/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/drawfilledrectangle.md)
- [lcd.drawFilledTriangle(x1, y1, x2, y2, x3, y3 \[, flags\])](https://luadoc.edgetx.org/edgetx-v2.7/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/drawfilledtriangle.md)
- [lcd.drawGauge(x, y, w, h, fill, maxfill \[, flags\])](https://luadoc.edgetx.org/edgetx-v2.7/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/drawgauge.md)
- [lcd.drawHudRectangle(pitch, roll, xmin, xmax, ymin, ymax \[, flags\])](https://luadoc.edgetx.org/edgetx-v2.7/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/drawhudrectangle.md)
- [lcd.drawLine(x1, y1, x2, y2, pattern, flags)](https://luadoc.edgetx.org/edgetx-v2.7/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/drawline.md)
- [lcd.drawLineWithClipping(x1, y1, x2, y2, xmin, xmax, ymin, ymax, pattern \[, flags\])](https://luadoc.edgetx.org/edgetx-v2.7/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/drawlinewithclipping.md)
- [lcd.drawNumber(x, y, value \[, flags \[, inversColor\]\])](https://luadoc.edgetx.org/edgetx-v2.7/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/drawnumber.md)
- [lcd.drawPie(x, y, r, start, end \[, flags\])](https://luadoc.edgetx.org/edgetx-v2.7/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/drawpie.md)
- [lcd.drawPixmap(x, y, name)](https://luadoc.edgetx.org/edgetx-v2.7/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/drawpixmap.md)
- [lcd.drawPoint(x, y)](https://luadoc.edgetx.org/edgetx-v2.7/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://luadoc.edgetx.org/edgetx-v2.7/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/drawrectangle.md)
- [lcd.drawScreenTitle(title, page, pages)](https://luadoc.edgetx.org/edgetx-v2.7/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/drawscreentitle.md)
- [lcd.drawSource(x, y, source \[, flags\])](https://luadoc.edgetx.org/edgetx-v2.7/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/drawsource.md)
- [lcd.drawSwitch(x, y, switch, flags)](https://luadoc.edgetx.org/edgetx-v2.7/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/drawswitch.md)
- [lcd.drawText(x, y, text \[, flags \[, inversColor\]\])](https://luadoc.edgetx.org/edgetx-v2.7/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/drawtext.md)
- [lcd.drawTextLines(x, y, w, h, text \[, flags\])](https://luadoc.edgetx.org/edgetx-v2.7/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/lcd.drawtextlines-x-y-w-h-text-flags.md)
- [lcd.drawTimer(x, y, value \[, flags \[, inversColor\]\])](https://luadoc.edgetx.org/edgetx-v2.7/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/drawtimer.md)
- [lcd.drawTriangle(x1, y1, x2, y2, x3, y3 \[, flags\])](https://luadoc.edgetx.org/edgetx-v2.7/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/drawtriangle.md)
- [lcd.exitFullScreen()](https://luadoc.edgetx.org/edgetx-v2.7/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/lcd.exitfullscreen.md)
- [lcd.getColor(flags)](https://luadoc.edgetx.org/edgetx-v2.7/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/getcolor.md)
- [lcd.getLastLeftPos()](https://luadoc.edgetx.org/edgetx-v2.7/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/getlastleftpos.md)
- [lcd.getLastPos()](https://luadoc.edgetx.org/edgetx-v2.7/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/getlastpos.md)
- [lcd.getLastRightPos()](https://luadoc.edgetx.org/edgetx-v2.7/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/getlastrightpos.md)
- [lcd.refresh()](https://luadoc.edgetx.org/edgetx-v2.7/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/refresh.md)
- [lcd.resetBacklightTimeout()](https://luadoc.edgetx.org/edgetx-v2.7/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/resetbacklighttimeout.md)
- [lcd.setColor(colorIndex, color)](https://luadoc.edgetx.org/edgetx-v2.7/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/setcolor.md)
- [lcd.sizeText(text \[, flags\])](https://luadoc.edgetx.org/edgetx-v2.7/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/sizetext.md)
- [Bitmap Functions](https://luadoc.edgetx.org/edgetx-v2.7/part_iii_-_opentx_lua_api_reference/bitmap-functions-less-than-greater-than-luadoc-begin-bitmap.md)
- [Bitmap.getSize(name)](https://luadoc.edgetx.org/edgetx-v2.7/part_iii_-_opentx_lua_api_reference/bitmap-functions-less-than-greater-than-luadoc-begin-bitmap/getsize.md)
- [Bitmap.open(name)](https://luadoc.edgetx.org/edgetx-v2.7/part_iii_-_opentx_lua_api_reference/bitmap-functions-less-than-greater-than-luadoc-begin-bitmap/open.md)
- [Filesystem](https://luadoc.edgetx.org/edgetx-v2.7/part_iii_-_opentx_lua_api_reference/filesystem.md)
- [dir(directory)](https://luadoc.edgetx.org/edgetx-v2.7/part_iii_-_opentx_lua_api_reference/filesystem/dir-directory.md)
- [fstat(path)](https://luadoc.edgetx.org/edgetx-v2.7/part_iii_-_opentx_lua_api_reference/filesystem/fstat-path.md)
- [Part IV - Advanced Topics](https://luadoc.edgetx.org/edgetx-v2.7/part_iv_-_advanced_topics.md)
- [Lua data sharing across scripts](https://luadoc.edgetx.org/edgetx-v2.7/part_iv_-_advanced_topics/lua_data_sharing_across_scripts.md)
- [Debugging techniques](https://luadoc.edgetx.org/edgetx-v2.7/part_iv_-_advanced_topics/debugging_techniques.md)
- [Speed/memory optimizaton tricks](https://luadoc.edgetx.org/edgetx-v2.7/part_iv_-_advanced_topics/optimization_tricks.md)
- [Appendix](https://luadoc.edgetx.org/edgetx-v2.7/appendix.md)
- [Fonts](https://luadoc.edgetx.org/edgetx-v2.7/appendix/fonts.md)
- [Units](https://luadoc.edgetx.org/edgetx-v2.7/appendix/units.md)

## 2.8

- [EdgeTX 2.8 Lua Reference Guide](https://luadoc.edgetx.org/edgetx-v2.8/readme.md)
- [Introduction](https://luadoc.edgetx.org/edgetx-v2.8/introduction.md)
- [Acknowledgments](https://luadoc.edgetx.org/edgetx-v2.8/introduction/acknowledgments.md)
- [Getting Started](https://luadoc.edgetx.org/edgetx-v2.8/introduction/getting_started.md)
- [Part I - Script Type Overview](https://luadoc.edgetx.org/edgetx-v2.8/part_i_-_script_type_overview.md): This section introduces the types of Lua scripts supported by EdgeTX and how they may be used.
- [Custom (Mixer) Scripts](https://luadoc.edgetx.org/edgetx-v2.8/part_i_-_script_type_overview/mix.md)
- [Telemetry Scripts](https://luadoc.edgetx.org/edgetx-v2.8/part_i_-_script_type_overview/telemetry.md)
- [One-Time Scripts](https://luadoc.edgetx.org/edgetx-v2.8/part_i_-_script_type_overview/one-time_scripts.md)
- [Function Scripts](https://luadoc.edgetx.org/edgetx-v2.8/part_i_-_script_type_overview/function_scripts.md)
- [Widget Scripts](https://luadoc.edgetx.org/edgetx-v2.8/part_i_-_script_type_overview/widget_scripts.md)
- [Part II - EdgeTX Lua API Programming Guide](https://luadoc.edgetx.org/edgetx-v2.8/part_ii_-_opentx_lua_api_programming_guide.md)
- [Lua Basics](https://luadoc.edgetx.org/edgetx-v2.8/part_ii_-_opentx_lua_api_programming_guide/lua-basics.md): Lua is a small but powerful language. This section will explain a few of the most important concepts.
- [Loading Code Modules Dynamically](https://luadoc.edgetx.org/edgetx-v2.8/part_ii_-_opentx_lua_api_programming_guide/loading-code-modules-dynamically.md): Lua makes it easy to load and unload code modules on the fly, to save memory or to provide program extensions.
- [Saving Memory](https://luadoc.edgetx.org/edgetx-v2.8/part_ii_-_opentx_lua_api_programming_guide/saving-memory.md): This chapter will show you some ways that large script projects can be fitted into the limited memory of our radios.
- [Using Key and Touch Events](https://luadoc.edgetx.org/edgetx-v2.8/part_ii_-_opentx_lua_api_programming_guide/using-key-and-touch-events.md): This section will discuss how interactive scripts receiving user inputs via key and touch events can be created.
- [Drawing Flags and Colors](https://luadoc.edgetx.org/edgetx-v2.8/part_ii_-_opentx_lua_api_programming_guide/drawing-flags-and-colors.md): This section will give some technical details for radios with a color screen.
- [Data Exchange with the EdgeTX Model Setup](https://luadoc.edgetx.org/edgetx-v2.8/part_ii_-_opentx_lua_api_programming_guide/data-exchange-with-the-edgetx-model-setup.md): An EdgeTX model has several data components that can be exchanged with Lua scripts. This section gives an overview.
- [Included Lua Libraries](https://luadoc.edgetx.org/edgetx-v2.8/part_ii_-_opentx_lua_api_programming_guide/included_lua_libraries.md)
- [io Library](https://luadoc.edgetx.org/edgetx-v2.8/part_ii_-_opentx_lua_api_programming_guide/included_lua_libraries/io-library.md)
- [io.open()](https://luadoc.edgetx.org/edgetx-v2.8/part_ii_-_opentx_lua_api_programming_guide/included_lua_libraries/io-library/io.open.md)
- [io.close()](https://luadoc.edgetx.org/edgetx-v2.8/part_ii_-_opentx_lua_api_programming_guide/included_lua_libraries/io-library/io.close.md)
- [io.read()](https://luadoc.edgetx.org/edgetx-v2.8/part_ii_-_opentx_lua_api_programming_guide/included_lua_libraries/io-library/io.read.md)
- [io.write()](https://luadoc.edgetx.org/edgetx-v2.8/part_ii_-_opentx_lua_api_programming_guide/included_lua_libraries/io-library/io.write.md)
- [io.seek()](https://luadoc.edgetx.org/edgetx-v2.8/part_ii_-_opentx_lua_api_programming_guide/included_lua_libraries/io-library/io.seek.md)
- [Part III - EdgeTX Lua API Reference](https://luadoc.edgetx.org/edgetx-v2.8/part_iii_-_opentx_lua_api_reference.md)
- [Constants](https://luadoc.edgetx.org/edgetx-v2.8/part_iii_-_opentx_lua_api_reference/constants.md): This section describes various constants that are provided for Lua by EdgeTX.
- [Key Event Constants](https://luadoc.edgetx.org/edgetx-v2.8/part_iii_-_opentx_lua_api_reference/constants/key_events.md): This page describes the value that is passed to scripts in the event parameter. It is used in Telemetry and One-Time scripts, as well as widget scripts in full screen mode.
- [Touch Event Constants](https://luadoc.edgetx.org/edgetx-v2.8/part_iii_-_opentx_lua_api_reference/constants/touch-event-constants.md): In addition to the key events described in the previous section, radios with a color touch screen also provide touch events to the widget scripts.
- [Flags and Pattern Constants](https://luadoc.edgetx.org/edgetx-v2.8/part_iii_-_opentx_lua_api_reference/constants/flags-and-pattern-constants.md): Many of the lcd functions accept parameters named flags and patterns. The names and their meanings are described below.
- [Color Constants](https://luadoc.edgetx.org/edgetx-v2.8/part_iii_-_opentx_lua_api_reference/constants/color-constants.md): On radios with color display, a color may be added to the flags described above.
- [Special Character Constants](https://luadoc.edgetx.org/edgetx-v2.8/part_iii_-_opentx_lua_api_reference/constants/special-character-constants.md): The radio's special characters can be used with the following text constants.
- [Screen Constants](https://luadoc.edgetx.org/edgetx-v2.8/part_iii_-_opentx_lua_api_reference/constants/screen-constants.md)
- [Logical Switch Function Constants](https://luadoc.edgetx.org/edgetx-v2.8/part_iii_-_opentx_lua_api_reference/constants/logical-switch-function-constants.md): These constants give the type of logical switch function.
- [Special Function Constants](https://luadoc.edgetx.org/edgetx-v2.8/part_iii_-_opentx_lua_api_reference/constants/special-function-constants.md): These constants determine the type of a Special Function
- [General Functions](https://luadoc.edgetx.org/edgetx-v2.8/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general.md)
- [GREY()](https://luadoc.edgetx.org/edgetx-v2.8/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/grey.md)
- [accessTelemetryPush()](https://luadoc.edgetx.org/edgetx-v2.8/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/accesstelemetrypush.md)
- [chdir(directory)](https://luadoc.edgetx.org/edgetx-v2.8/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/chdir.md)
- [crossfireTelemetryPop()](https://luadoc.edgetx.org/edgetx-v2.8/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/crossfiretelemetrypop.md)
- [crossfireTelemetryPush()](https://luadoc.edgetx.org/edgetx-v2.8/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/crossfiretelemetrypush.md)
- [defaultChannel(stick)](https://luadoc.edgetx.org/edgetx-v2.8/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/defaultchannel.md)
- [defaultStick(channel)](https://luadoc.edgetx.org/edgetx-v2.8/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/defaultstick.md)
- [flushAudio()](https://luadoc.edgetx.org/edgetx-v2.8/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/flushaudio.md)
- [getAvailableMemory()](https://luadoc.edgetx.org/edgetx-v2.8/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/getavailablememory.md)
- [getDateTime()](https://luadoc.edgetx.org/edgetx-v2.8/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/getdatetime.md)
- [getFieldInfo(source)](https://luadoc.edgetx.org/edgetx-v2.8/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/getfieldinfo.md)
- [getFlightMode(mode)](https://luadoc.edgetx.org/edgetx-v2.8/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/getflightmode.md)
- [getGeneralSettings()](https://luadoc.edgetx.org/edgetx-v2.8/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/getgeneralsettings.md)
- [getGlobalTimer()](https://luadoc.edgetx.org/edgetx-v2.8/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/getglobaltimer.md)
- [getLogicalSwitchValue(id)](https://luadoc.edgetx.org/edgetx-v2.8/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/getlogicalswitchvalue-id.md)
- [getOutputValue(outputIndex)](https://luadoc.edgetx.org/edgetx-v2.8/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/getoutputvalue-outputindex.md)
- [getRAS()](https://luadoc.edgetx.org/edgetx-v2.8/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/getras.md)
- [getRSSI()](https://luadoc.edgetx.org/edgetx-v2.8/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/getrssi.md)
- [getRotEncMode()](https://luadoc.edgetx.org/edgetx-v2.8/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/getrotencmode.md)
- [getRotEncSpeed()](https://luadoc.edgetx.org/edgetx-v2.8/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/getrotencspeed.md)
- [getRtcTime()](https://luadoc.edgetx.org/edgetx-v2.8/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/getrtctime.md)
- [getShmVar(id)](https://luadoc.edgetx.org/edgetx-v2.8/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/getshmvar-id.md)
- [getSourceInfo(source)](https://luadoc.edgetx.org/edgetx-v2.8/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/getfieldinfo-1.md)
- [getSourceIndex(sourceName)](https://luadoc.edgetx.org/edgetx-v2.8/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/getsourceindex-sourcename.md)
- [getSourceName(sourceIndex)](https://luadoc.edgetx.org/edgetx-v2.8/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/getsourcename-sourceindex.md)
- [getSourceValue(source)](https://luadoc.edgetx.org/edgetx-v2.8/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/getsourcevalue-source.md)
- [getSwitchIndex(positionName)](https://luadoc.edgetx.org/edgetx-v2.8/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/getswitchindex-positionname.md)
- [getSwitchName(switchIndex)](https://luadoc.edgetx.org/edgetx-v2.8/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/getswitchname-switchindex.md)
- [getSwitchValue(switchIndex)](https://luadoc.edgetx.org/edgetx-v2.8/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/getswitchvalue-switchindex.md)
- [getTime()](https://luadoc.edgetx.org/edgetx-v2.8/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/gettime.md)
- [getTxGPS()](https://luadoc.edgetx.org/edgetx-v2.8/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/gettxgps.md)
- [getUsage()](https://luadoc.edgetx.org/edgetx-v2.8/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/getusage.md)
- [getValue(source)](https://luadoc.edgetx.org/edgetx-v2.8/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/getvalue.md)
- [getVersion()](https://luadoc.edgetx.org/edgetx-v2.8/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/getversion.md)
- [ghostTelemetryPop()](https://luadoc.edgetx.org/edgetx-v2.8/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/ghosttelemetrypop.md)
- [ghostTelemetryPush()](https://luadoc.edgetx.org/edgetx-v2.8/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/ghosttelemetrypush.md)
- [killEvents(key)](https://luadoc.edgetx.org/edgetx-v2.8/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/killevents.md)
- [loadScript(file \[, mode\], \[,env\])](https://luadoc.edgetx.org/edgetx-v2.8/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/loadscript.md)
- [multiBuffer(address\[,value\])](https://luadoc.edgetx.org/edgetx-v2.8/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/multibuffer.md)
- [playDuration(duration \[, hourFormat\])](https://luadoc.edgetx.org/edgetx-v2.8/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/playduration.md)
- [playFile(name)](https://luadoc.edgetx.org/edgetx-v2.8/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/playfile.md)
- [playHaptic(duration, pause \[, flags\])](https://luadoc.edgetx.org/edgetx-v2.8/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/playhaptic.md)
- [playNumber(value, unit \[, attributes\])](https://luadoc.edgetx.org/edgetx-v2.8/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/playnumber.md)
- [playTone(frequency, duration, pause \[, flags \[, freqIncr\]\])](https://luadoc.edgetx.org/edgetx-v2.8/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/playtone.md)
- [popupConfirmation(title, message, event)](https://luadoc.edgetx.org/edgetx-v2.8/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/popupconfirmation.md)
- [popupInput(title, event, input, min, max)](https://luadoc.edgetx.org/edgetx-v2.8/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/popupinput.md)
- [popupWarning(title, event)](https://luadoc.edgetx.org/edgetx-v2.8/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/popupwarning.md)
- [resetGlobalTimer(\[type\])](https://luadoc.edgetx.org/edgetx-v2.8/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/resetglobaltimer.md)
- [serialRead(\[num\])](https://luadoc.edgetx.org/edgetx-v2.8/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/serialread.md)
- [serialWrite(str)](https://luadoc.edgetx.org/edgetx-v2.8/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/serialwrite.md)
- [setSerialBaudrate(baudrate)](https://luadoc.edgetx.org/edgetx-v2.8/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/setserialbaudrate.md)
- [setShmVar(id, value)](https://luadoc.edgetx.org/edgetx-v2.8/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/setshmvar-id-value.md)
- [setStickySwitch(id, value)](https://luadoc.edgetx.org/edgetx-v2.8/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/setstickyswitch-id-value.md)
- [setTelemetryValue(id, subID, instance, value \[, unit \[, precision \[, name\]\]\])](https://luadoc.edgetx.org/edgetx-v2.8/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/settelemetryvalue.md)
- [sources(\[first\[, last\]\])](https://luadoc.edgetx.org/edgetx-v2.8/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/sources-first-last.md)
- [switches(\[first\[, last\]\])](https://luadoc.edgetx.org/edgetx-v2.8/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/switches-first-last.md)
- [sportTelemetryPop()](https://luadoc.edgetx.org/edgetx-v2.8/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/sporttelemetrypop.md)
- [sportTelemetryPush()](https://luadoc.edgetx.org/edgetx-v2.8/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/sporttelemetrypush.md)
- [Model Functions](https://luadoc.edgetx.org/edgetx-v2.8/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model.md)
- [model.defaultInputs()](https://luadoc.edgetx.org/edgetx-v2.8/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/defaultinputs.md)
- [model.deleteFlightModes()](https://luadoc.edgetx.org/edgetx-v2.8/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/deleteflightmodes.md)
- [model.deleteInput(input, line)](https://luadoc.edgetx.org/edgetx-v2.8/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/deleteinput.md)
- [model.deleteInputs()](https://luadoc.edgetx.org/edgetx-v2.8/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/deleteinputs.md)
- [model.deleteMix(channel, line)](https://luadoc.edgetx.org/edgetx-v2.8/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/deletemix.md)
- [model.deleteMixes()](https://luadoc.edgetx.org/edgetx-v2.8/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/deletemixes.md)
- [model.getCurve(curve)](https://luadoc.edgetx.org/edgetx-v2.8/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/getcurve.md)
- [model.getCustomFunction(function)](https://luadoc.edgetx.org/edgetx-v2.8/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/getcustomfunction.md)
- [model.getFlightMode(index)](https://luadoc.edgetx.org/edgetx-v2.8/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/getflightmode.md)
- [model.getGlobalVariable(index, flight\_mode)](https://luadoc.edgetx.org/edgetx-v2.8/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/getglobalvariable.md)
- [model.getInfo()](https://luadoc.edgetx.org/edgetx-v2.8/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/getinfo.md)
- [model.getInput(input, line)](https://luadoc.edgetx.org/edgetx-v2.8/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/getinput.md)
- [model.getInputsCount(input)](https://luadoc.edgetx.org/edgetx-v2.8/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/getinputscount.md)
- [model.getLogicalSwitch(switch)](https://luadoc.edgetx.org/edgetx-v2.8/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/getlogicalswitch.md)
- [model.getMix(channel, line)](https://luadoc.edgetx.org/edgetx-v2.8/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/getmix.md)
- [model.getMixesCount(channel)](https://luadoc.edgetx.org/edgetx-v2.8/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/getmixescount.md)
- [model.getModule(index)](https://luadoc.edgetx.org/edgetx-v2.8/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/getmodule.md)
- [model.getOutput(index)](https://luadoc.edgetx.org/edgetx-v2.8/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/getoutput.md)
- [model.getSensor(sensor)](https://luadoc.edgetx.org/edgetx-v2.8/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/getsensor.md)
- [model.getSwashRing()](https://luadoc.edgetx.org/edgetx-v2.8/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/model.getswashring.md)
- [model.getTimer(timer)](https://luadoc.edgetx.org/edgetx-v2.8/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/gettimer.md)
- [model.insertInput(input, line, value)](https://luadoc.edgetx.org/edgetx-v2.8/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/insertinput.md)
- [model.insertMix(channel, line, value)](https://luadoc.edgetx.org/edgetx-v2.8/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/insertmix.md)
- [model.resetSensor(sensor)](https://luadoc.edgetx.org/edgetx-v2.8/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/resetsensor.md)
- [model.resetTimer(timer)](https://luadoc.edgetx.org/edgetx-v2.8/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/resettimer.md)
- [model.setCurve(curve, params)](https://luadoc.edgetx.org/edgetx-v2.8/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/setcurve.md)
- [model.setCustomFunction(function, value)](https://luadoc.edgetx.org/edgetx-v2.8/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/setcustomfunction.md)
- [model.setFlightMode(index, params)](https://luadoc.edgetx.org/edgetx-v2.8/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/setflightmode.md)
- [model.setGlobalVariable(index, flight\_mode, value)](https://luadoc.edgetx.org/edgetx-v2.8/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/setglobalvariable.md)
- [model.setInfo(value)](https://luadoc.edgetx.org/edgetx-v2.8/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/setinfo.md)
- [model.setLogicalSwitch(switch, value)](https://luadoc.edgetx.org/edgetx-v2.8/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/setlogicalswitch.md)
- [model.setModule(index, value)](https://luadoc.edgetx.org/edgetx-v2.8/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/setmodule.md)
- [model.setOutput(index, value)](https://luadoc.edgetx.org/edgetx-v2.8/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/setoutput.md)
- [model.setSwashRing(params)](https://luadoc.edgetx.org/edgetx-v2.8/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/model.setswashring-params.md)
- [model.setTimer(timer, value)](https://luadoc.edgetx.org/edgetx-v2.8/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/settimer.md)
- [Lcd Functions](https://luadoc.edgetx.org/edgetx-v2.8/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd.md)
- [Lcd Functions Overview](https://luadoc.edgetx.org/edgetx-v2.8/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/lcd_functions-overview.md)
- [lcd.RGB(r, g, b | rgb)](https://luadoc.edgetx.org/edgetx-v2.8/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/rgb.md)
- [lcd.clear(\[color\])](https://luadoc.edgetx.org/edgetx-v2.8/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/clear.md)
- [lcd.drawAnnulus(x, y, r1, r2, start, end \[, flags\])](https://luadoc.edgetx.org/edgetx-v2.8/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/drawannulus.md)
- [lcd.drawArc(x, y, r, start, end \[, flags\])](https://luadoc.edgetx.org/edgetx-v2.8/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/drawarc.md)
- [lcd.drawBitmap(bitmap, x, y \[, scale\])](https://luadoc.edgetx.org/edgetx-v2.8/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/drawbitmap.md)
- [lcd.drawBitmapPattern(bitmap, x, y \[, flags\])](https://luadoc.edgetx.org/edgetx-v2.8/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/lcd.drawbitmappattern-bitmap-x-y-flags.md)
- [lcd.drawBitmapPatternPie(bitmap, x, y, startAngle, endAngle \[, flags\])](https://luadoc.edgetx.org/edgetx-v2.8/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/lcd.drawbitmappatternpie-bitmap-x-y-startangle-endangle-flags.md)
- [lcd.drawChannel(x, y, source, flags)](https://luadoc.edgetx.org/edgetx-v2.8/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/drawchannel.md)
- [lcd.drawCircle(x, y, r \[, flags\])](https://luadoc.edgetx.org/edgetx-v2.8/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/drawcircle.md)
- [lcd.drawCombobox(x, y, w, list, idx \[, flags\])](https://luadoc.edgetx.org/edgetx-v2.8/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/drawcombobox.md)
- [lcd.drawFilledCircle(x, y, r \[, flags\])](https://luadoc.edgetx.org/edgetx-v2.8/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/drawfilledcircle.md)
- [lcd.drawFilledRectangle(x, y, w, h \[, flags\])](https://luadoc.edgetx.org/edgetx-v2.8/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/drawfilledrectangle.md)
- [lcd.drawFilledTriangle(x1, y1, x2, y2, x3, y3 \[, flags\])](https://luadoc.edgetx.org/edgetx-v2.8/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/drawfilledtriangle.md)
- [lcd.drawGauge(x, y, w, h, fill, maxfill \[, flags\])](https://luadoc.edgetx.org/edgetx-v2.8/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/drawgauge.md)
- [lcd.drawHudRectangle(pitch, roll, xmin, xmax, ymin, ymax \[, flags\])](https://luadoc.edgetx.org/edgetx-v2.8/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/drawhudrectangle.md)
- [lcd.drawLine(x1, y1, x2, y2, pattern, flags)](https://luadoc.edgetx.org/edgetx-v2.8/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/drawline.md)
- [lcd.drawLineWithClipping(x1, y1, x2, y2, xmin, xmax, ymin, ymax, pattern \[, flags\])](https://luadoc.edgetx.org/edgetx-v2.8/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/drawlinewithclipping.md)
- [lcd.drawNumber(x, y, value \[, flags \[, inversColor\]\])](https://luadoc.edgetx.org/edgetx-v2.8/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/drawnumber.md)
- [lcd.drawPie(x, y, r, start, end \[, flags\])](https://luadoc.edgetx.org/edgetx-v2.8/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/drawpie.md)
- [lcd.drawPixmap(x, y, name)](https://luadoc.edgetx.org/edgetx-v2.8/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/drawpixmap.md)
- [lcd.drawPoint(x, y)](https://luadoc.edgetx.org/edgetx-v2.8/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://luadoc.edgetx.org/edgetx-v2.8/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/drawrectangle.md)
- [lcd.drawScreenTitle(title, page, pages)](https://luadoc.edgetx.org/edgetx-v2.8/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/drawscreentitle.md)
- [lcd.drawSource(x, y, source \[, flags\])](https://luadoc.edgetx.org/edgetx-v2.8/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/drawsource.md)
- [lcd.drawSwitch(x, y, switch, flags)](https://luadoc.edgetx.org/edgetx-v2.8/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/drawswitch.md)
- [lcd.drawText(x, y, text \[, flags \[, inversColor\]\])](https://luadoc.edgetx.org/edgetx-v2.8/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/drawtext.md)
- [lcd.drawTextLines(x, y, w, h, text \[, flags\])](https://luadoc.edgetx.org/edgetx-v2.8/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/lcd.drawtextlines-x-y-w-h-text-flags.md)
- [lcd.drawTimer(x, y, value \[, flags \[, inversColor\]\])](https://luadoc.edgetx.org/edgetx-v2.8/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/drawtimer.md)
- [lcd.drawTriangle(x1, y1, x2, y2, x3, y3 \[, flags\])](https://luadoc.edgetx.org/edgetx-v2.8/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/drawtriangle.md)
- [lcd.exitFullScreen()](https://luadoc.edgetx.org/edgetx-v2.8/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/lcd.exitfullscreen.md)
- [lcd.getColor(flags)](https://luadoc.edgetx.org/edgetx-v2.8/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/getcolor.md)
- [lcd.getLastLeftPos()](https://luadoc.edgetx.org/edgetx-v2.8/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/getlastleftpos.md)
- [lcd.getLastPos()](https://luadoc.edgetx.org/edgetx-v2.8/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/getlastpos.md)
- [lcd.getLastRightPos()](https://luadoc.edgetx.org/edgetx-v2.8/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/getlastrightpos.md)
- [lcd.invertRect(x, y, w, h \[, flags\])](https://luadoc.edgetx.org/edgetx-v2.8/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/lcd.invertrect-x-y-w-h-flags.md)
- [lcd.refresh()](https://luadoc.edgetx.org/edgetx-v2.8/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/refresh.md)
- [lcd.resetBacklightTimeout()](https://luadoc.edgetx.org/edgetx-v2.8/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/resetbacklighttimeout.md)
- [lcd.setColor(colorIndex, color)](https://luadoc.edgetx.org/edgetx-v2.8/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/setcolor.md)
- [lcd.sizeText(text \[, flags\])](https://luadoc.edgetx.org/edgetx-v2.8/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/sizetext.md)
- [Bitmap Functions](https://luadoc.edgetx.org/edgetx-v2.8/part_iii_-_opentx_lua_api_reference/bitmap-functions-less-than-greater-than-luadoc-begin-bitmap.md)
- [Bitmap.getSize(name)](https://luadoc.edgetx.org/edgetx-v2.8/part_iii_-_opentx_lua_api_reference/bitmap-functions-less-than-greater-than-luadoc-begin-bitmap/getsize.md)
- [Bitmap.open(name)](https://luadoc.edgetx.org/edgetx-v2.8/part_iii_-_opentx_lua_api_reference/bitmap-functions-less-than-greater-than-luadoc-begin-bitmap/open.md)
- [Bitmap.resize(bitmap, width, height)](https://luadoc.edgetx.org/edgetx-v2.8/part_iii_-_opentx_lua_api_reference/bitmap-functions-less-than-greater-than-luadoc-begin-bitmap/bitmap.resize-bitmap-width-height.md)
- [Bitmap.toMask(bitmap)](https://luadoc.edgetx.org/edgetx-v2.8/part_iii_-_opentx_lua_api_reference/bitmap-functions-less-than-greater-than-luadoc-begin-bitmap/bitmap.tomask-bitmap.md)
- [Filesystem](https://luadoc.edgetx.org/edgetx-v2.8/part_iii_-_opentx_lua_api_reference/filesystem.md)
- [dir(directory)](https://luadoc.edgetx.org/edgetx-v2.8/part_iii_-_opentx_lua_api_reference/filesystem/dir-directory.md)
- [fstat(path)](https://luadoc.edgetx.org/edgetx-v2.8/part_iii_-_opentx_lua_api_reference/filesystem/fstat-path.md)
- [Part IV - Advanced Topics](https://luadoc.edgetx.org/edgetx-v2.8/part_iv_-_advanced_topics.md)
- [Lua data sharing across scripts](https://luadoc.edgetx.org/edgetx-v2.8/part_iv_-_advanced_topics/lua_data_sharing_across_scripts.md)
- [Debugging techniques](https://luadoc.edgetx.org/edgetx-v2.8/part_iv_-_advanced_topics/debugging_techniques.md)
- [Speed/memory optimizaton tricks](https://luadoc.edgetx.org/edgetx-v2.8/part_iv_-_advanced_topics/optimization_tricks.md)
- [Appendix](https://luadoc.edgetx.org/edgetx-v2.8/appendix.md)
- [Fonts](https://luadoc.edgetx.org/edgetx-v2.8/appendix/fonts.md)
- [Units](https://luadoc.edgetx.org/edgetx-v2.8/appendix/units.md)

## 2.9

- [EdgeTX 2.9 Lua Reference Guide](https://luadoc.edgetx.org/2.9/readme.md)
- [Introduction](https://luadoc.edgetx.org/2.9/introduction.md)
- [Acknowledgments](https://luadoc.edgetx.org/2.9/introduction/acknowledgments.md)
- [Getting Started](https://luadoc.edgetx.org/2.9/introduction/getting_started.md)
- [Script Type Overview](https://luadoc.edgetx.org/2.9/part_i_-_script_type_overview.md): This section introduces the types of Lua scripts supported by EdgeTX and how they may be used.
- [Custom (Mixer) Scripts](https://luadoc.edgetx.org/2.9/part_i_-_script_type_overview/mix.md)
- [Telemetry Scripts](https://luadoc.edgetx.org/2.9/part_i_-_script_type_overview/telemetry.md)
- [One-Time Scripts](https://luadoc.edgetx.org/2.9/part_i_-_script_type_overview/one-time_scripts.md)
- [Function Scripts](https://luadoc.edgetx.org/2.9/part_i_-_script_type_overview/function_scripts.md)
- [Widget Scripts](https://luadoc.edgetx.org/2.9/part_i_-_script_type_overview/widget_scripts.md)
- [EdgeTX Lua API Programming Guide](https://luadoc.edgetx.org/2.9/part_ii_-_opentx_lua_api_programming_guide.md)
- [Lua Basics](https://luadoc.edgetx.org/2.9/part_ii_-_opentx_lua_api_programming_guide/lua-basics.md): Lua is a small but powerful language. This section will explain a few of the most important concepts.
- [Loading Code Modules Dynamically](https://luadoc.edgetx.org/2.9/part_ii_-_opentx_lua_api_programming_guide/loading-code-modules-dynamically.md): Lua makes it easy to load and unload code modules on the fly, to save memory or to provide program extensions.
- [Saving Memory](https://luadoc.edgetx.org/2.9/part_ii_-_opentx_lua_api_programming_guide/saving-memory.md): This chapter will show you some ways that large script projects can be fitted into the limited memory of our radios.
- [Using Key and Touch Events](https://luadoc.edgetx.org/2.9/part_ii_-_opentx_lua_api_programming_guide/using-key-and-touch-events.md): This section will discuss how interactive scripts receiving user inputs via key and touch events can be created.
- [Drawing Flags and Colors](https://luadoc.edgetx.org/2.9/part_ii_-_opentx_lua_api_programming_guide/drawing-flags-and-colors.md): This section will give some technical details for radios with a color screen.
- [Data Exchange with the EdgeTX Model Setup](https://luadoc.edgetx.org/2.9/part_ii_-_opentx_lua_api_programming_guide/data-exchange-with-the-edgetx-model-setup.md): An EdgeTX model has several data components that can be exchanged with Lua scripts. This section gives an overview.
- [Included Lua Libraries](https://luadoc.edgetx.org/2.9/part_ii_-_opentx_lua_api_programming_guide/included_lua_libraries.md)
- [io Library](https://luadoc.edgetx.org/2.9/part_ii_-_opentx_lua_api_programming_guide/included_lua_libraries/io-library.md)
- [io.open()](https://luadoc.edgetx.org/2.9/part_ii_-_opentx_lua_api_programming_guide/included_lua_libraries/io-library/io.open.md)
- [io.close()](https://luadoc.edgetx.org/2.9/part_ii_-_opentx_lua_api_programming_guide/included_lua_libraries/io-library/io.close.md)
- [io.read()](https://luadoc.edgetx.org/2.9/part_ii_-_opentx_lua_api_programming_guide/included_lua_libraries/io-library/io.read.md)
- [io.write()](https://luadoc.edgetx.org/2.9/part_ii_-_opentx_lua_api_programming_guide/included_lua_libraries/io-library/io.write.md)
- [io.seek()](https://luadoc.edgetx.org/2.9/part_ii_-_opentx_lua_api_programming_guide/included_lua_libraries/io-library/io.seek.md)
- [EdgeTX Lua API Reference](https://luadoc.edgetx.org/2.9/part_iii_-_opentx_lua_api_reference.md)
- [Constants](https://luadoc.edgetx.org/2.9/part_iii_-_opentx_lua_api_reference/constants.md): This section describes various constants that are provided for Lua by EdgeTX.
- [Key Event Constants](https://luadoc.edgetx.org/2.9/part_iii_-_opentx_lua_api_reference/constants/key_events.md): This page describes the value that is passed to scripts in the event parameter. It is used in Telemetry and One-Time scripts, as well as widget scripts in full screen mode.
- [Touch Event Constants](https://luadoc.edgetx.org/2.9/part_iii_-_opentx_lua_api_reference/constants/touch-event-constants.md): In addition to the key events described in the previous section, radios with a color touch screen also provide touch events to the widget scripts.
- [Flags and Pattern Constants](https://luadoc.edgetx.org/2.9/part_iii_-_opentx_lua_api_reference/constants/flags-and-pattern-constants.md): Many of the lcd functions accept parameters named flags and patterns. The names and their meanings are described below.
- [Color Constants](https://luadoc.edgetx.org/2.9/part_iii_-_opentx_lua_api_reference/constants/color-constants.md): On radios with color display, a color may be added to the flags described above.
- [Special Character Constants](https://luadoc.edgetx.org/2.9/part_iii_-_opentx_lua_api_reference/constants/special-character-constants.md): The radio's special characters can be used with the following text constants.
- [Screen Constants](https://luadoc.edgetx.org/2.9/part_iii_-_opentx_lua_api_reference/constants/screen-constants.md)
- [Logical Switch Function Constants](https://luadoc.edgetx.org/2.9/part_iii_-_opentx_lua_api_reference/constants/logical-switch-function-constants.md): These constants give the type of logical switch function.
- [Special Function Constants](https://luadoc.edgetx.org/2.9/part_iii_-_opentx_lua_api_reference/constants/special-function-constants.md): These constants determine the type of a Special Function
- [Widget Options Constants](https://luadoc.edgetx.org/2.9/part_iii_-_opentx_lua_api_reference/constants/widget-options-constants.md)
- [General Functions](https://luadoc.edgetx.org/2.9/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general.md)
- [GREY()](https://luadoc.edgetx.org/2.9/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/grey.md)
- [accessTelemetryPush()](https://luadoc.edgetx.org/2.9/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/accesstelemetrypush.md)
- [chdir(directory)](https://luadoc.edgetx.org/2.9/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/chdir.md)
- [crossfireTelemetryPop()](https://luadoc.edgetx.org/2.9/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/crossfiretelemetrypop.md)
- [crossfireTelemetryPush()](https://luadoc.edgetx.org/2.9/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/crossfiretelemetrypush.md)
- [defaultChannel(stick)](https://luadoc.edgetx.org/2.9/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/defaultchannel.md)
- [defaultStick(channel)](https://luadoc.edgetx.org/2.9/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/defaultstick.md)
- [flushAudio()](https://luadoc.edgetx.org/2.9/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/flushaudio.md)
- [getAvailableMemory()](https://luadoc.edgetx.org/2.9/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/getavailablememory.md)
- [getDateTime()](https://luadoc.edgetx.org/2.9/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/getdatetime.md)
- [getFieldInfo(source)](https://luadoc.edgetx.org/2.9/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/getfieldinfo.md)
- [getFlightMode(mode)](https://luadoc.edgetx.org/2.9/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/getflightmode.md)
- [getGeneralSettings()](https://luadoc.edgetx.org/2.9/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/getgeneralsettings.md)
- [getGlobalTimer()](https://luadoc.edgetx.org/2.9/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/getglobaltimer.md)
- [getLogicalSwitchValue(id)](https://luadoc.edgetx.org/2.9/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/getlogicalswitchvalue-id.md)
- [getOutputValue(outputIndex)](https://luadoc.edgetx.org/2.9/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/getoutputvalue-outputindex.md)
- [getRAS()](https://luadoc.edgetx.org/2.9/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/getras.md)
- [getRSSI()](https://luadoc.edgetx.org/2.9/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/getrssi.md)
- [getRotEncMode()](https://luadoc.edgetx.org/2.9/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/getrotencmode.md)
- [getRotEncSpeed()](https://luadoc.edgetx.org/2.9/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/getrotencspeed.md)
- [getRtcTime()](https://luadoc.edgetx.org/2.9/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/getrtctime.md)
- [getShmVar(id)](https://luadoc.edgetx.org/2.9/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/getshmvar-id.md)
- [getSourceIndex(sourceName)](https://luadoc.edgetx.org/2.9/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/getsourceindex-sourcename.md)
- [getSourceName(sourceIndex)](https://luadoc.edgetx.org/2.9/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/getsourcename-sourceindex.md)
- [getSourceValue(source)](https://luadoc.edgetx.org/2.9/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/getsourcevalue-source.md)
- [getSwitchIndex(positionName)](https://luadoc.edgetx.org/2.9/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/getswitchindex-positionname.md)
- [getSwitchName(switchIndex)](https://luadoc.edgetx.org/2.9/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/getswitchname-switchindex.md)
- [getSwitchValue(switchIndex)](https://luadoc.edgetx.org/2.9/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/getswitchvalue-switchindex.md)
- [getTime()](https://luadoc.edgetx.org/2.9/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/gettime.md)
- [getTxGPS()](https://luadoc.edgetx.org/2.9/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/gettxgps.md)
- [getUsage()](https://luadoc.edgetx.org/2.9/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/getusage.md)
- [getValue(source)](https://luadoc.edgetx.org/2.9/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/getvalue.md)
- [getVersion()](https://luadoc.edgetx.org/2.9/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/getversion.md)
- [ghostTelemetryPop()](https://luadoc.edgetx.org/2.9/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/ghosttelemetrypop.md)
- [ghostTelemetryPush()](https://luadoc.edgetx.org/2.9/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/ghosttelemetrypush.md)
- [killEvents(key)](https://luadoc.edgetx.org/2.9/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/killevents.md)
- [loadScript(file \[, mode\], \[,env\])](https://luadoc.edgetx.org/2.9/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/loadscript.md)
- [multiBuffer(address\[,value\])](https://luadoc.edgetx.org/2.9/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/multibuffer.md)
- [playDuration(duration \[, hourFormat\])](https://luadoc.edgetx.org/2.9/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/playduration.md)
- [playFile(name)](https://luadoc.edgetx.org/2.9/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/playfile.md)
- [playHaptic(duration, pause \[, flags\])](https://luadoc.edgetx.org/2.9/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/playhaptic.md)
- [playNumber(value, unit \[, attributes\])](https://luadoc.edgetx.org/2.9/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/playnumber.md)
- [playTone(frequency, duration, pause \[, flags \[, freqIncr\]\])](https://luadoc.edgetx.org/2.9/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/playtone.md)
- [popupConfirmation(title, message, event)](https://luadoc.edgetx.org/2.9/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/popupconfirmation.md)
- [popupInput(title, event, input, min, max)](https://luadoc.edgetx.org/2.9/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/popupinput.md)
- [popupWarning(title, event)](https://luadoc.edgetx.org/2.9/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/popupwarning.md)
- [resetGlobalTimer(\[type\])](https://luadoc.edgetx.org/2.9/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/resetglobaltimer.md)
- [serialGetPower(port\_nr)](https://luadoc.edgetx.org/2.9/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/serialgetpower-port_nr.md)
- [serialRead(\[num\])](https://luadoc.edgetx.org/2.9/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/serialread.md)
- [serialSetPower(port\_nr, value)](https://luadoc.edgetx.org/2.9/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/serialsetpower-port_nr-value.md)
- [serialWrite(str)](https://luadoc.edgetx.org/2.9/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/serialwrite.md)
- [setSerialBaudrate(baudrate)](https://luadoc.edgetx.org/2.9/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/setserialbaudrate.md)
- [setShmVar(id, value)](https://luadoc.edgetx.org/2.9/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/setshmvar-id-value.md)
- [setStickySwitch(id, value)](https://luadoc.edgetx.org/2.9/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/setstickyswitch-id-value.md)
- [setTelemetryValue(id, subID, instance, value \[, unit \[, precision \[, name\]\]\])](https://luadoc.edgetx.org/2.9/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/settelemetryvalue.md)
- [sources(\[first\[, last\]\])](https://luadoc.edgetx.org/2.9/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/sources-first-last.md)
- [switches(\[first\[, last\]\])](https://luadoc.edgetx.org/2.9/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/switches-first-last.md)
- [sportTelemetryPop()](https://luadoc.edgetx.org/2.9/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/sporttelemetrypop.md)
- [sportTelemetryPush()](https://luadoc.edgetx.org/2.9/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/sporttelemetrypush.md)
- [Model Functions](https://luadoc.edgetx.org/2.9/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model.md)
- [model.defaultInputs()](https://luadoc.edgetx.org/2.9/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/defaultinputs.md)
- [model.deleteFlightModes()](https://luadoc.edgetx.org/2.9/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/deleteflightmodes.md)
- [model.deleteInput(input, line)](https://luadoc.edgetx.org/2.9/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/deleteinput.md)
- [model.deleteInputs()](https://luadoc.edgetx.org/2.9/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/deleteinputs.md)
- [model.deleteMix(channel, line)](https://luadoc.edgetx.org/2.9/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/deletemix.md)
- [model.deleteMixes()](https://luadoc.edgetx.org/2.9/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/deletemixes.md)
- [model.getCurve(curve)](https://luadoc.edgetx.org/2.9/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/getcurve.md)
- [model.getCustomFunction(function)](https://luadoc.edgetx.org/2.9/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/getcustomfunction.md)
- [model.getFlightMode(index)](https://luadoc.edgetx.org/2.9/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/getflightmode.md)
- [model.getGlobalVariable(index, flight\_mode)](https://luadoc.edgetx.org/2.9/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/getglobalvariable.md)
- [model.getInfo()](https://luadoc.edgetx.org/2.9/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/getinfo.md)
- [model.getInput(input, line)](https://luadoc.edgetx.org/2.9/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/getinput.md)
- [model.getInputsCount(input)](https://luadoc.edgetx.org/2.9/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/getinputscount.md)
- [model.getLogicalSwitch(switch)](https://luadoc.edgetx.org/2.9/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/getlogicalswitch.md)
- [model.getMix(channel, line)](https://luadoc.edgetx.org/2.9/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/getmix.md)
- [model.getMixesCount(channel)](https://luadoc.edgetx.org/2.9/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/getmixescount.md)
- [model.getModule(index)](https://luadoc.edgetx.org/2.9/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/getmodule.md)
- [model.getOutput(index)](https://luadoc.edgetx.org/2.9/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/getoutput.md)
- [model.getSensor(sensor)](https://luadoc.edgetx.org/2.9/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/getsensor.md)
- [model.getSwashRing()](https://luadoc.edgetx.org/2.9/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/model.getswashring.md)
- [model.getTimer(timer)](https://luadoc.edgetx.org/2.9/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/gettimer.md)
- [model.insertInput(input, line, value)](https://luadoc.edgetx.org/2.9/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/insertinput.md)
- [model.insertMix(channel, line, value)](https://luadoc.edgetx.org/2.9/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/insertmix.md)
- [model.resetSensor(sensor)](https://luadoc.edgetx.org/2.9/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/resetsensor.md)
- [model.resetTimer(timer)](https://luadoc.edgetx.org/2.9/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/resettimer.md)
- [model.setCurve(curve, params)](https://luadoc.edgetx.org/2.9/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/setcurve.md)
- [model.setCustomFunction(function, value)](https://luadoc.edgetx.org/2.9/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/setcustomfunction.md)
- [model.setFlightMode(index, params)](https://luadoc.edgetx.org/2.9/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/setflightmode.md)
- [model.setGlobalVariable(index, flight\_mode, value)](https://luadoc.edgetx.org/2.9/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/setglobalvariable.md)
- [model.setInfo(value)](https://luadoc.edgetx.org/2.9/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/setinfo.md)
- [model.setLogicalSwitch(switch, value)](https://luadoc.edgetx.org/2.9/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/setlogicalswitch.md)
- [model.setModule(index, value)](https://luadoc.edgetx.org/2.9/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/setmodule.md)
- [model.setOutput(index, value)](https://luadoc.edgetx.org/2.9/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/setoutput.md)
- [model.setSwashRing(params)](https://luadoc.edgetx.org/2.9/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/model.setswashring-params.md)
- [model.setTimer(timer, value)](https://luadoc.edgetx.org/2.9/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/settimer.md)
- [Lcd Functions](https://luadoc.edgetx.org/2.9/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd.md)
- [Lcd Functions Overview](https://luadoc.edgetx.org/2.9/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/lcd_functions-overview.md)
- [lcd.RGB(r, g, b | rgb)](https://luadoc.edgetx.org/2.9/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/rgb.md)
- [lcd.clear(\[color\])](https://luadoc.edgetx.org/2.9/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/clear.md)
- [lcd.drawAnnulus(x, y, r1, r2, start, end \[, flags\])](https://luadoc.edgetx.org/2.9/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/drawannulus.md)
- [lcd.drawArc(x, y, r, start, end \[, flags\])](https://luadoc.edgetx.org/2.9/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/drawarc.md)
- [lcd.drawBitmap(bitmap, x, y \[, scale\])](https://luadoc.edgetx.org/2.9/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/drawbitmap.md)
- [lcd.drawBitmapPattern(bitmap, x, y \[, flags\])](https://luadoc.edgetx.org/2.9/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/lcd.drawbitmappattern-bitmap-x-y-flags.md)
- [lcd.drawBitmapPatternPie(bitmap, x, y, startAngle, endAngle \[, flags\])](https://luadoc.edgetx.org/2.9/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/lcd.drawbitmappatternpie-bitmap-x-y-startangle-endangle-flags.md)
- [lcd.drawChannel(x, y, source, flags)](https://luadoc.edgetx.org/2.9/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/drawchannel.md)
- [lcd.drawCircle(x, y, r \[, flags\])](https://luadoc.edgetx.org/2.9/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/drawcircle.md)
- [lcd.drawCombobox(x, y, w, list, idx \[, flags\])](https://luadoc.edgetx.org/2.9/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/drawcombobox.md)
- [lcd.drawFilledCircle(x, y, r \[, flags\])](https://luadoc.edgetx.org/2.9/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/drawfilledcircle.md)
- [lcd.drawFilledRectangle(x, y, w, h \[, flags\])](https://luadoc.edgetx.org/2.9/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/drawfilledrectangle.md)
- [lcd.drawFilledTriangle(x1, y1, x2, y2, x3, y3 \[, flags\])](https://luadoc.edgetx.org/2.9/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/drawfilledtriangle.md)
- [lcd.drawGauge(x, y, w, h, fill, maxfill \[, flags\])](https://luadoc.edgetx.org/2.9/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/drawgauge.md)
- [lcd.drawHudRectangle(pitch, roll, xmin, xmax, ymin, ymax \[, flags\])](https://luadoc.edgetx.org/2.9/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/drawhudrectangle.md)
- [lcd.drawLine(x1, y1, x2, y2, pattern, flags)](https://luadoc.edgetx.org/2.9/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/drawline.md)
- [lcd.drawLineWithClipping(x1, y1, x2, y2, xmin, xmax, ymin, ymax, pattern \[, flags\])](https://luadoc.edgetx.org/2.9/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/drawlinewithclipping.md)
- [lcd.drawNumber(x, y, value \[, flags \[, inversColor\]\])](https://luadoc.edgetx.org/2.9/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/drawnumber.md)
- [lcd.drawPie(x, y, r, start, end \[, flags\])](https://luadoc.edgetx.org/2.9/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/drawpie.md)
- [lcd.drawPixmap(x, y, name)](https://luadoc.edgetx.org/2.9/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/drawpixmap.md)
- [lcd.drawPoint(x, y)](https://luadoc.edgetx.org/2.9/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://luadoc.edgetx.org/2.9/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/drawrectangle.md)
- [lcd.drawScreenTitle(title, page, pages)](https://luadoc.edgetx.org/2.9/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/drawscreentitle.md)
- [lcd.drawSource(x, y, source \[, flags\])](https://luadoc.edgetx.org/2.9/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/drawsource.md)
- [lcd.drawSwitch(x, y, switch, flags)](https://luadoc.edgetx.org/2.9/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/drawswitch.md)
- [lcd.drawText(x, y, text \[, flags \[, inversColor\]\])](https://luadoc.edgetx.org/2.9/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/drawtext.md)
- [lcd.drawTextLines(x, y, w, h, text \[, flags\])](https://luadoc.edgetx.org/2.9/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/lcd.drawtextlines-x-y-w-h-text-flags.md)
- [lcd.drawTimer(x, y, value \[, flags \[, inversColor\]\])](https://luadoc.edgetx.org/2.9/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/drawtimer.md)
- [lcd.drawTriangle(x1, y1, x2, y2, x3, y3 \[, flags\])](https://luadoc.edgetx.org/2.9/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/drawtriangle.md)
- [lcd.exitFullScreen()](https://luadoc.edgetx.org/2.9/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/lcd.exitfullscreen.md)
- [lcd.getColor(flags)](https://luadoc.edgetx.org/2.9/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/getcolor.md)
- [lcd.getLastLeftPos()](https://luadoc.edgetx.org/2.9/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/getlastleftpos.md)
- [lcd.getLastPos()](https://luadoc.edgetx.org/2.9/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/getlastpos.md)
- [lcd.getLastRightPos()](https://luadoc.edgetx.org/2.9/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/getlastrightpos.md)
- [lcd.invertRect(x, y, w, h \[, flags\])](https://luadoc.edgetx.org/2.9/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/lcd.invertrect-x-y-w-h-flags.md)
- [lcd.refresh()](https://luadoc.edgetx.org/2.9/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/refresh.md)
- [lcd.resetBacklightTimeout()](https://luadoc.edgetx.org/2.9/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/resetbacklighttimeout.md)
- [lcd.setColor(colorIndex, color)](https://luadoc.edgetx.org/2.9/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/setcolor.md)
- [lcd.sizeText(text \[, flags\])](https://luadoc.edgetx.org/2.9/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/sizetext.md)
- [Bitmap Functions](https://luadoc.edgetx.org/2.9/part_iii_-_opentx_lua_api_reference/bitmap-functions-less-than-greater-than-luadoc-begin-bitmap.md)
- [Bitmap.getSize(name)](https://luadoc.edgetx.org/2.9/part_iii_-_opentx_lua_api_reference/bitmap-functions-less-than-greater-than-luadoc-begin-bitmap/getsize.md)
- [Bitmap.open(name)](https://luadoc.edgetx.org/2.9/part_iii_-_opentx_lua_api_reference/bitmap-functions-less-than-greater-than-luadoc-begin-bitmap/open.md)
- [Bitmap.resize(bitmap, width, height)](https://luadoc.edgetx.org/2.9/part_iii_-_opentx_lua_api_reference/bitmap-functions-less-than-greater-than-luadoc-begin-bitmap/bitmap.resize-bitmap-width-height.md)
- [Bitmap.toMask(bitmap)](https://luadoc.edgetx.org/2.9/part_iii_-_opentx_lua_api_reference/bitmap-functions-less-than-greater-than-luadoc-begin-bitmap/bitmap.tomask-bitmap.md)
- [Filesystem](https://luadoc.edgetx.org/2.9/part_iii_-_opentx_lua_api_reference/filesystem.md)
- [dir(directory)](https://luadoc.edgetx.org/2.9/part_iii_-_opentx_lua_api_reference/filesystem/dir-directory.md)
- [fstat(path)](https://luadoc.edgetx.org/2.9/part_iii_-_opentx_lua_api_reference/filesystem/fstat-path.md)
- [del(file or directory)](https://luadoc.edgetx.org/2.9/part_iii_-_opentx_lua_api_reference/filesystem/del-file-or-directory.md)
- [Advanced Topics](https://luadoc.edgetx.org/2.9/part_iv_-_advanced_topics.md)
- [Lua data sharing across scripts](https://luadoc.edgetx.org/2.9/part_iv_-_advanced_topics/lua_data_sharing_across_scripts.md)
- [Debugging techniques](https://luadoc.edgetx.org/2.9/part_iv_-_advanced_topics/debugging_techniques.md)
- [Speed/memory optimizaton tricks](https://luadoc.edgetx.org/2.9/part_iv_-_advanced_topics/optimization_tricks.md)
- [Appendix](https://luadoc.edgetx.org/2.9/appendix.md)
- [Fonts](https://luadoc.edgetx.org/2.9/appendix/fonts.md)
- [Units](https://luadoc.edgetx.org/2.9/appendix/units.md)

## 2.10

- [EdgeTX 2.10 Lua Reference Guide](https://luadoc.edgetx.org/2.10/readme.md)
- [Introduction](https://luadoc.edgetx.org/2.10/introduction.md)
- [Acknowledgments](https://luadoc.edgetx.org/2.10/introduction/acknowledgments.md)
- [Getting Started](https://luadoc.edgetx.org/2.10/introduction/getting_started.md)
- [Script Type Overview](https://luadoc.edgetx.org/2.10/part_i_-_script_type_overview.md): This section introduces the types of Lua scripts supported by EdgeTX and how they may be used.
- [Custom (Mixer) Scripts](https://luadoc.edgetx.org/2.10/part_i_-_script_type_overview/mix.md)
- [Telemetry Scripts](https://luadoc.edgetx.org/2.10/part_i_-_script_type_overview/telemetry.md)
- [One-Time Scripts](https://luadoc.edgetx.org/2.10/part_i_-_script_type_overview/one-time_scripts.md)
- [Function Scripts](https://luadoc.edgetx.org/2.10/part_i_-_script_type_overview/function_scripts.md)
- [Widget Scripts](https://luadoc.edgetx.org/2.10/part_i_-_script_type_overview/widget_scripts.md)
- [EdgeTX Lua API Programming Guide](https://luadoc.edgetx.org/2.10/part_ii_-_opentx_lua_api_programming_guide.md)
- [Lua Basics](https://luadoc.edgetx.org/2.10/part_ii_-_opentx_lua_api_programming_guide/lua-basics.md): Lua is a small but powerful language. This section will explain a few of the most important concepts.
- [Loading Code Modules Dynamically](https://luadoc.edgetx.org/2.10/part_ii_-_opentx_lua_api_programming_guide/loading-code-modules-dynamically.md): Lua makes it easy to load and unload code modules on the fly, to save memory or to provide program extensions.
- [Saving Memory](https://luadoc.edgetx.org/2.10/part_ii_-_opentx_lua_api_programming_guide/saving-memory.md): This chapter will show you some ways that large script projects can be fitted into the limited memory of our radios.
- [Using Key and Touch Events](https://luadoc.edgetx.org/2.10/part_ii_-_opentx_lua_api_programming_guide/using-key-and-touch-events.md): This section will discuss how interactive scripts receiving user inputs via key and touch events can be created.
- [Drawing Flags and Colors](https://luadoc.edgetx.org/2.10/part_ii_-_opentx_lua_api_programming_guide/drawing-flags-and-colors.md): This section will give some technical details for radios with a color screen.
- [Data Exchange with the EdgeTX Model Setup](https://luadoc.edgetx.org/2.10/part_ii_-_opentx_lua_api_programming_guide/data-exchange-with-the-edgetx-model-setup.md): An EdgeTX model has several data components that can be exchanged with Lua scripts. This section gives an overview.
- [Included Lua Libraries](https://luadoc.edgetx.org/2.10/part_ii_-_opentx_lua_api_programming_guide/included_lua_libraries.md)
- [io Library](https://luadoc.edgetx.org/2.10/part_ii_-_opentx_lua_api_programming_guide/included_lua_libraries/io-library.md)
- [io.open()](https://luadoc.edgetx.org/2.10/part_ii_-_opentx_lua_api_programming_guide/included_lua_libraries/io-library/io.open.md)
- [io.close()](https://luadoc.edgetx.org/2.10/part_ii_-_opentx_lua_api_programming_guide/included_lua_libraries/io-library/io.close.md)
- [io.read()](https://luadoc.edgetx.org/2.10/part_ii_-_opentx_lua_api_programming_guide/included_lua_libraries/io-library/io.read.md)
- [io.write()](https://luadoc.edgetx.org/2.10/part_ii_-_opentx_lua_api_programming_guide/included_lua_libraries/io-library/io.write.md)
- [io.seek()](https://luadoc.edgetx.org/2.10/part_ii_-_opentx_lua_api_programming_guide/included_lua_libraries/io-library/io.seek.md)
- [EdgeTX Lua API Reference](https://luadoc.edgetx.org/2.10/part_iii_-_opentx_lua_api_reference.md)
- [Constants](https://luadoc.edgetx.org/2.10/part_iii_-_opentx_lua_api_reference/constants.md): This section describes various constants that are provided for Lua by EdgeTX.
- [Key Event Constants](https://luadoc.edgetx.org/2.10/part_iii_-_opentx_lua_api_reference/constants/key_events.md): This page describes the value that is passed to scripts in the event parameter. It is used in Telemetry and One-Time scripts, as well as widget scripts in full screen mode.
- [Touch Event Constants](https://luadoc.edgetx.org/2.10/part_iii_-_opentx_lua_api_reference/constants/touch-event-constants.md): In addition to the key events described in the previous section, radios with a color touch screen also provide touch events to the widget scripts.
- [Flags and Pattern Constants](https://luadoc.edgetx.org/2.10/part_iii_-_opentx_lua_api_reference/constants/flags-and-pattern-constants.md): Many of the lcd functions accept parameters named flags and patterns. The names and their meanings are described below.
- [Color Constants](https://luadoc.edgetx.org/2.10/part_iii_-_opentx_lua_api_reference/constants/color-constants.md): On radios with color display, a color may be added to the flags described above.
- [Special Character Constants](https://luadoc.edgetx.org/2.10/part_iii_-_opentx_lua_api_reference/constants/special-character-constants.md): The radio's special characters can be used with the following text constants.
- [Screen Constants](https://luadoc.edgetx.org/2.10/part_iii_-_opentx_lua_api_reference/constants/screen-constants.md)
- [Logical Switch Function Constants](https://luadoc.edgetx.org/2.10/part_iii_-_opentx_lua_api_reference/constants/logical-switch-function-constants.md): These constants give the type of logical switch function.
- [Special Function Constants](https://luadoc.edgetx.org/2.10/part_iii_-_opentx_lua_api_reference/constants/special-function-constants.md): These constants determine the type of a Special Function
- [Widget Options Constants](https://luadoc.edgetx.org/2.10/part_iii_-_opentx_lua_api_reference/constants/widget-options.md)
- [General Functions](https://luadoc.edgetx.org/2.10/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general.md)
- [GREY()](https://luadoc.edgetx.org/2.10/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/grey.md)
- [accessTelemetryPush()](https://luadoc.edgetx.org/2.10/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/accesstelemetrypush.md)
- [chdir(directory)](https://luadoc.edgetx.org/2.10/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/chdir.md)
- [crossfireTelemetryPop()](https://luadoc.edgetx.org/2.10/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/crossfiretelemetrypop.md)
- [crossfireTelemetryPush()](https://luadoc.edgetx.org/2.10/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/crossfiretelemetrypush.md)
- [defaultChannel(stick)](https://luadoc.edgetx.org/2.10/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/defaultchannel.md)
- [defaultStick(channel)](https://luadoc.edgetx.org/2.10/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/defaultstick.md)
- [flushAudio()](https://luadoc.edgetx.org/2.10/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/flushaudio.md)
- [getAvailableMemory()](https://luadoc.edgetx.org/2.10/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/getavailablememory.md)
- [getDateTime()](https://luadoc.edgetx.org/2.10/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/getdatetime.md)
- [getFieldInfo(source)](https://luadoc.edgetx.org/2.10/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/getfieldinfo.md)
- [getFlightMode(mode)](https://luadoc.edgetx.org/2.10/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/getflightmode.md)
- [getGeneralSettings()](https://luadoc.edgetx.org/2.10/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/getgeneralsettings.md)
- [getGlobalTimer()](https://luadoc.edgetx.org/2.10/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/getglobaltimer.md)
- [getLogicalSwitchValue(id)](https://luadoc.edgetx.org/2.10/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/getlogicalswitchvalue-id.md)
- [getOutputValue(outputIndex)](https://luadoc.edgetx.org/2.10/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/getoutputvalue-outputindex.md)
- [getRAS()](https://luadoc.edgetx.org/2.10/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/getras.md)
- [getRSSI()](https://luadoc.edgetx.org/2.10/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/getrssi.md)
- [getRotEncMode()](https://luadoc.edgetx.org/2.10/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/getrotencmode.md)
- [getRotEncSpeed()](https://luadoc.edgetx.org/2.10/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/getrotencspeed.md)
- [getRtcTime()](https://luadoc.edgetx.org/2.10/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/getrtctime.md)
- [getShmVar(id)](https://luadoc.edgetx.org/2.10/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/getshmvar-id.md)
- [getSourceIndex(sourceName)](https://luadoc.edgetx.org/2.10/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/getsourceindex-sourcename.md)
- [getSourceName(sourceIndex)](https://luadoc.edgetx.org/2.10/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/getsourcename-sourceindex.md)
- [getSourceValue(source)](https://luadoc.edgetx.org/2.10/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/getsourcevalue-source.md)
- [getSwitchIndex(positionName)](https://luadoc.edgetx.org/2.10/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/getswitchindex-positionname.md)
- [getSwitchName(switchIndex)](https://luadoc.edgetx.org/2.10/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/getswitchname-switchindex.md)
- [getSwitchValue(switchIndex)](https://luadoc.edgetx.org/2.10/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/getswitchvalue-switchindex.md)
- [getTime()](https://luadoc.edgetx.org/2.10/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/gettime.md)
- [getTxGPS()](https://luadoc.edgetx.org/2.10/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/gettxgps.md)
- [getUsage()](https://luadoc.edgetx.org/2.10/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/getusage.md)
- [getValue(source)](https://luadoc.edgetx.org/2.10/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/getvalue.md)
- [getVersion()](https://luadoc.edgetx.org/2.10/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/getversion.md)
- [ghostTelemetryPop()](https://luadoc.edgetx.org/2.10/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/ghosttelemetrypop.md)
- [ghostTelemetryPush()](https://luadoc.edgetx.org/2.10/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/ghosttelemetrypush.md)
- [killEvents(key)](https://luadoc.edgetx.org/2.10/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/killevents.md)
- [loadScript(file \[, mode\], \[,env\])](https://luadoc.edgetx.org/2.10/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/loadscript.md)
- [multiBuffer(address\[,value\])](https://luadoc.edgetx.org/2.10/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/multibuffer.md)
- [playDuration(duration \[, hourFormat \[, volume\]\])](https://luadoc.edgetx.org/2.10/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/playduration.md): Play a time value (text to speech)
- [playFile(filename \[, volume\])](https://luadoc.edgetx.org/2.10/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/playfile.md): Play a file from the SD card
- [playHaptic(duration, pause \[, flags\])](https://luadoc.edgetx.org/2.10/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/playhaptic.md)
- [playNumber(value, unit \[, attributes \[, volume\]\])](https://luadoc.edgetx.org/2.10/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/playnumber.md): Play a numerical value (text to speech)
- [playTone(frequency, duration, pause \[, flags \[, freqIncr \[, volume\]\]\])](https://luadoc.edgetx.org/2.10/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/playtone.md): Play a tone
- [popupConfirmation(title, message, event)](https://luadoc.edgetx.org/2.10/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/popupconfirmation.md)
- [popupInput(title, event, input, min, max)](https://luadoc.edgetx.org/2.10/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/popupinput.md)
- [popupWarning(title, event)](https://luadoc.edgetx.org/2.10/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/popupwarning.md)
- [resetGlobalTimer(\[type\])](https://luadoc.edgetx.org/2.10/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/resetglobaltimer.md)
- [serialGetPower(port\_nr)](https://luadoc.edgetx.org/2.10/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/serialgetpower-port_nr.md)
- [serialRead(\[num\])](https://luadoc.edgetx.org/2.10/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/serialread.md)
- [serialSetPower(port\_nr, value)](https://luadoc.edgetx.org/2.10/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/serialsetpower-port_nr-value.md)
- [serialWrite(str)](https://luadoc.edgetx.org/2.10/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/serialwrite.md)
- [setSerialBaudrate(baudrate)](https://luadoc.edgetx.org/2.10/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/setserialbaudrate.md)
- [setShmVar(id, value)](https://luadoc.edgetx.org/2.10/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/setshmvar-id-value.md)
- [setStickySwitch(id, value)](https://luadoc.edgetx.org/2.10/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/setstickyswitch-id-value.md)
- [setTelemetryValue(id, subID, instance, value \[, unit \[, precision \[, name\]\]\])](https://luadoc.edgetx.org/2.10/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/settelemetryvalue.md)
- [sources(\[first\[, last\]\])](https://luadoc.edgetx.org/2.10/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/sources-first-last.md)
- [switches(\[first\[, last\]\])](https://luadoc.edgetx.org/2.10/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/switches-first-last.md)
- [sportTelemetryPop()](https://luadoc.edgetx.org/2.10/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/sporttelemetrypop.md)
- [sportTelemetryPush()](https://luadoc.edgetx.org/2.10/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/sporttelemetrypush.md)
- [Model Functions](https://luadoc.edgetx.org/2.10/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model.md)
- [model.defaultInputs()](https://luadoc.edgetx.org/2.10/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/defaultinputs.md)
- [model.deleteFlightModes()](https://luadoc.edgetx.org/2.10/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/deleteflightmodes.md)
- [model.deleteInput(input, line)](https://luadoc.edgetx.org/2.10/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/deleteinput.md)
- [model.deleteInputs()](https://luadoc.edgetx.org/2.10/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/deleteinputs.md)
- [model.deleteMix(channel, line)](https://luadoc.edgetx.org/2.10/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/deletemix.md)
- [model.deleteMixes()](https://luadoc.edgetx.org/2.10/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/deletemixes.md)
- [model.getCurve(curve)](https://luadoc.edgetx.org/2.10/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/getcurve.md)
- [model.getCustomFunction(function)](https://luadoc.edgetx.org/2.10/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/getcustomfunction.md)
- [model.getFlightMode(index)](https://luadoc.edgetx.org/2.10/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/getflightmode.md)
- [model.getGlobalVariable(index, flight\_mode)](https://luadoc.edgetx.org/2.10/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/getglobalvariable.md)
- [model.getInfo()](https://luadoc.edgetx.org/2.10/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/getinfo.md)
- [model.getInput(input, line)](https://luadoc.edgetx.org/2.10/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/getinput.md)
- [model.getInputsCount(input)](https://luadoc.edgetx.org/2.10/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/getinputscount.md)
- [model.getLogicalSwitch(switch)](https://luadoc.edgetx.org/2.10/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/getlogicalswitch.md)
- [model.getMix(channel, line)](https://luadoc.edgetx.org/2.10/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/getmix.md)
- [model.getMixesCount(channel)](https://luadoc.edgetx.org/2.10/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/getmixescount.md)
- [model.getModule(index)](https://luadoc.edgetx.org/2.10/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/getmodule.md)
- [model.getOutput(index)](https://luadoc.edgetx.org/2.10/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/getoutput.md)
- [model.getSensor(sensor)](https://luadoc.edgetx.org/2.10/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/getsensor.md)
- [model.getSwashRing()](https://luadoc.edgetx.org/2.10/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/model.getswashring.md)
- [model.getTimer(timer)](https://luadoc.edgetx.org/2.10/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/gettimer.md)
- [model.insertInput(input, line, value)](https://luadoc.edgetx.org/2.10/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/insertinput.md)
- [model.insertMix(channel, line, value)](https://luadoc.edgetx.org/2.10/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/insertmix.md)
- [model.resetSensor(sensor)](https://luadoc.edgetx.org/2.10/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/resetsensor.md)
- [model.resetTimer(timer)](https://luadoc.edgetx.org/2.10/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/resettimer.md)
- [model.setCurve(curve, params)](https://luadoc.edgetx.org/2.10/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/setcurve.md)
- [model.setCustomFunction(function, value)](https://luadoc.edgetx.org/2.10/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/setcustomfunction.md)
- [model.setFlightMode(index, params)](https://luadoc.edgetx.org/2.10/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/setflightmode.md)
- [model.setGlobalVariable(index, flight\_mode, value)](https://luadoc.edgetx.org/2.10/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/setglobalvariable.md)
- [model.setInfo(value)](https://luadoc.edgetx.org/2.10/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/setinfo.md)
- [model.setLogicalSwitch(switch, value)](https://luadoc.edgetx.org/2.10/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/setlogicalswitch.md)
- [model.setModule(index, value)](https://luadoc.edgetx.org/2.10/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/setmodule.md)
- [model.setOutput(index, value)](https://luadoc.edgetx.org/2.10/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/setoutput.md)
- [model.setSwashRing(params)](https://luadoc.edgetx.org/2.10/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/model.setswashring-params.md)
- [model.setTimer(timer, value)](https://luadoc.edgetx.org/2.10/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/settimer.md)
- [Lcd Functions](https://luadoc.edgetx.org/2.10/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd.md)
- [Lcd Functions Overview](https://luadoc.edgetx.org/2.10/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/lcd_functions-overview.md)
- [lcd.RGB(r, g, b | rgb)](https://luadoc.edgetx.org/2.10/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/rgb.md)
- [lcd.clear(\[color\])](https://luadoc.edgetx.org/2.10/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/clear.md)
- [lcd.drawAnnulus(x, y, r1, r2, start, end \[, flags\])](https://luadoc.edgetx.org/2.10/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/drawannulus.md)
- [lcd.drawArc(x, y, r, start, end \[, flags\])](https://luadoc.edgetx.org/2.10/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/drawarc.md)
- [lcd.drawBitmap(bitmap, x, y \[, scale\])](https://luadoc.edgetx.org/2.10/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/drawbitmap.md)
- [lcd.drawBitmapPattern(bitmap, x, y \[, flags\])](https://luadoc.edgetx.org/2.10/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/lcd.drawbitmappattern-bitmap-x-y-flags.md)
- [lcd.drawBitmapPatternPie(bitmap, x, y, startAngle, endAngle \[, flags\])](https://luadoc.edgetx.org/2.10/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/lcd.drawbitmappatternpie-bitmap-x-y-startangle-endangle-flags.md)
- [lcd.drawChannel(x, y, source, flags)](https://luadoc.edgetx.org/2.10/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/drawchannel.md)
- [lcd.drawCircle(x, y, r \[, flags\])](https://luadoc.edgetx.org/2.10/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/drawcircle.md)
- [lcd.drawCombobox(x, y, w, list, idx \[, flags\])](https://luadoc.edgetx.org/2.10/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/drawcombobox.md)
- [lcd.drawFilledCircle(x, y, r \[, flags\])](https://luadoc.edgetx.org/2.10/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/drawfilledcircle.md)
- [lcd.drawFilledRectangle(x, y, w, h \[, flags\])](https://luadoc.edgetx.org/2.10/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/drawfilledrectangle.md)
- [lcd.drawFilledTriangle(x1, y1, x2, y2, x3, y3 \[, flags\])](https://luadoc.edgetx.org/2.10/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/drawfilledtriangle.md)
- [lcd.drawGauge(x, y, w, h, fill, maxfill \[, flags\])](https://luadoc.edgetx.org/2.10/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/drawgauge.md)
- [lcd.drawHudRectangle(pitch, roll, xmin, xmax, ymin, ymax \[, flags\])](https://luadoc.edgetx.org/2.10/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/drawhudrectangle.md)
- [lcd.drawLine(x1, y1, x2, y2, pattern, flags)](https://luadoc.edgetx.org/2.10/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/drawline.md)
- [lcd.drawLineWithClipping(x1, y1, x2, y2, xmin, xmax, ymin, ymax, pattern \[, flags\])](https://luadoc.edgetx.org/2.10/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/drawlinewithclipping.md)
- [lcd.drawNumber(x, y, value \[, flags \[, inversColor\]\])](https://luadoc.edgetx.org/2.10/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/drawnumber.md)
- [lcd.drawPie(x, y, r, start, end \[, flags\])](https://luadoc.edgetx.org/2.10/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/drawpie.md)
- [lcd.drawPixmap(x, y, name)](https://luadoc.edgetx.org/2.10/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/drawpixmap.md)
- [lcd.drawPoint(x, y)](https://luadoc.edgetx.org/2.10/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://luadoc.edgetx.org/2.10/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/drawrectangle.md)
- [lcd.drawScreenTitle(title, page, pages)](https://luadoc.edgetx.org/2.10/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/drawscreentitle.md)
- [lcd.drawSource(x, y, source \[, flags\])](https://luadoc.edgetx.org/2.10/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/drawsource.md)
- [lcd.drawSwitch(x, y, switch, flags)](https://luadoc.edgetx.org/2.10/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/drawswitch.md)
- [lcd.drawText(x, y, text \[, flags \[, inversColor\]\])](https://luadoc.edgetx.org/2.10/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/drawtext.md)
- [lcd.drawTextLines(x, y, w, h, text \[, flags\])](https://luadoc.edgetx.org/2.10/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/lcd.drawtextlines-x-y-w-h-text-flags.md)
- [lcd.drawTimer(x, y, value \[, flags \[, inversColor\]\])](https://luadoc.edgetx.org/2.10/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/drawtimer.md)
- [lcd.drawTriangle(x1, y1, x2, y2, x3, y3 \[, flags\])](https://luadoc.edgetx.org/2.10/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/drawtriangle.md)
- [lcd.exitFullScreen()](https://luadoc.edgetx.org/2.10/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/lcd.exitfullscreen.md)
- [lcd.getColor(flags)](https://luadoc.edgetx.org/2.10/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/getcolor.md)
- [lcd.getLastLeftPos()](https://luadoc.edgetx.org/2.10/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/getlastleftpos.md)
- [lcd.getLastPos()](https://luadoc.edgetx.org/2.10/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/getlastpos.md)
- [lcd.getLastRightPos()](https://luadoc.edgetx.org/2.10/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/getlastrightpos.md)
- [lcd.invertRect(x, y, w, h \[, flags\])](https://luadoc.edgetx.org/2.10/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/lcd.invertrect-x-y-w-h-flags.md)
- [lcd.refresh()](https://luadoc.edgetx.org/2.10/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/refresh.md)
- [lcd.resetBacklightTimeout()](https://luadoc.edgetx.org/2.10/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/resetbacklighttimeout.md)
- [lcd.setColor(colorIndex, color)](https://luadoc.edgetx.org/2.10/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/setcolor.md)
- [lcd.sizeText(text \[, flags\])](https://luadoc.edgetx.org/2.10/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/sizetext.md)
- [Bitmap Functions](https://luadoc.edgetx.org/2.10/part_iii_-_opentx_lua_api_reference/bitmap-functions-less-than-greater-than-luadoc-begin-bitmap.md)
- [Bitmap.getSize(name)](https://luadoc.edgetx.org/2.10/part_iii_-_opentx_lua_api_reference/bitmap-functions-less-than-greater-than-luadoc-begin-bitmap/getsize.md)
- [Bitmap.open(name)](https://luadoc.edgetx.org/2.10/part_iii_-_opentx_lua_api_reference/bitmap-functions-less-than-greater-than-luadoc-begin-bitmap/open.md)
- [Bitmap.resize(bitmap, width, height)](https://luadoc.edgetx.org/2.10/part_iii_-_opentx_lua_api_reference/bitmap-functions-less-than-greater-than-luadoc-begin-bitmap/bitmap.resize-bitmap-width-height.md)
- [Bitmap.toMask(bitmap)](https://luadoc.edgetx.org/2.10/part_iii_-_opentx_lua_api_reference/bitmap-functions-less-than-greater-than-luadoc-begin-bitmap/bitmap.tomask-bitmap.md)
- [Filesystem](https://luadoc.edgetx.org/2.10/part_iii_-_opentx_lua_api_reference/filesystem.md)
- [dir(directory)](https://luadoc.edgetx.org/2.10/part_iii_-_opentx_lua_api_reference/filesystem/dir-directory.md)
- [fstat(path)](https://luadoc.edgetx.org/2.10/part_iii_-_opentx_lua_api_reference/filesystem/fstat-path.md)
- [del(file or directory)](https://luadoc.edgetx.org/2.10/part_iii_-_opentx_lua_api_reference/filesystem/del-file-or-directory.md)
- [Advanced Topics](https://luadoc.edgetx.org/2.10/part_iv_-_advanced_topics.md)
- [Lua data sharing across scripts](https://luadoc.edgetx.org/2.10/part_iv_-_advanced_topics/lua_data_sharing_across_scripts.md)
- [Debugging techniques](https://luadoc.edgetx.org/2.10/part_iv_-_advanced_topics/debugging_techniques.md)
- [Speed/memory optimizaton tricks](https://luadoc.edgetx.org/2.10/part_iv_-_advanced_topics/optimization_tricks.md)
- [Appendix](https://luadoc.edgetx.org/2.10/appendix.md)
- [Fonts](https://luadoc.edgetx.org/2.10/appendix/fonts.md)
- [Units](https://luadoc.edgetx.org/2.10/appendix/units.md)

## 2.11

- [EdgeTX LUA Reference Guide](https://luadoc.edgetx.org/2.11/readme.md)
- [Overview](https://luadoc.edgetx.org/2.11/overview.md): This section covers various topics of LUA implementation in EdgeTX operating system system
- [Lua Basics](https://luadoc.edgetx.org/2.11/overview/lua-basics.md): Lua is a small but powerful language. This section will explain a few of the most important concepts.
- [LUA version and included libraries](https://luadoc.edgetx.org/2.11/overview/version-libraries.md)
- [io Library](https://luadoc.edgetx.org/2.11/overview/version-libraries/io-library.md)
- [Script Types](https://luadoc.edgetx.org/2.11/overview/script-types.md): This section introduces the types of Lua scripts supported by EdgeTX and how they may be used.
- [One-Time Scripts](https://luadoc.edgetx.org/2.11/overview/script-types/one-time-scripts.md)
- [Telemetry Scripts](https://luadoc.edgetx.org/2.11/overview/script-types/telemetry-scripts.md)
- [Widget Scripts](https://luadoc.edgetx.org/2.11/overview/script-types/widget-scripts.md)
- [Function Scripts](https://luadoc.edgetx.org/2.11/overview/script-types/function-scripts.md)
- [Mixes Scripts](https://luadoc.edgetx.org/2.11/overview/script-types/mixes-scripts.md)
- [Radios](https://luadoc.edgetx.org/2.11/overview/radios.md)
- [BetaFPV](https://luadoc.edgetx.org/2.11/overview/radios/betafpv.md)
- [FlySky](https://luadoc.edgetx.org/2.11/overview/radios/flysky.md)
- [FrSky](https://luadoc.edgetx.org/2.11/overview/radios/frsky.md)
- [Jumper](https://luadoc.edgetx.org/2.11/overview/radios/jumper.md)
- [Radiomaster](https://luadoc.edgetx.org/2.11/overview/radios/radiomaster.md)
- [TX16S](https://luadoc.edgetx.org/2.11/overview/radios/radiomaster/tx16s.md)
- [Internal indexes](https://luadoc.edgetx.org/2.11/overview/internal-indexes.md)
- [Source List](https://luadoc.edgetx.org/2.11/overview/internal-indexes/source-list.md)
- [Switch Positions List](https://luadoc.edgetx.org/2.11/overview/internal-indexes/switch-positions-id.md)
- [LUA API Reference](https://luadoc.edgetx.org/2.11/lua-api-reference.md)
- [Constants](https://luadoc.edgetx.org/2.11/lua-api-reference/constants.md): This section describes various constants that are provided for Lua by EdgeTX.
- [Color Constants](https://luadoc.edgetx.org/2.11/lua-api-reference/constants/color-constants.md): On radios with color display, a color may be added to the flags described above.
- [Flags and Pattern Constants](https://luadoc.edgetx.org/2.11/lua-api-reference/constants/flags-and-pattern-constants.md): Many of the lcd functions accept parameters named flags and patterns. The names and their meanings are described below.
- [Key Event Constants](https://luadoc.edgetx.org/2.11/lua-api-reference/constants/key-event-constants.md)
- [Logical Switch Function Constants](https://luadoc.edgetx.org/2.11/lua-api-reference/constants/logical-switch-function-constants.md): These constants are used with logical switch functions.
- [Screen Constants](https://luadoc.edgetx.org/2.11/lua-api-reference/constants/screen-constants.md)
- [Special Character Constants](https://luadoc.edgetx.org/2.11/lua-api-reference/constants/special-character-constants.md): The radio's special characters can be used with the following text constants.
- [Special Function Constants](https://luadoc.edgetx.org/2.11/lua-api-reference/constants/special-function-constants.md): These constants determine the type of a Special Function
- [Touch Event Constants](https://luadoc.edgetx.org/2.11/lua-api-reference/constants/touch-event-constants.md): In addition to the key events described in the previous section, radios with a color touch screen also provide touch events to the widget scripts.
- [Widget Options Constants](https://luadoc.edgetx.org/2.11/lua-api-reference/constants/widget-options.md)
- [Units](https://luadoc.edgetx.org/2.11/lua-api-reference/constants/units.md)
- [Display LCD](https://luadoc.edgetx.org/2.11/lua-api-reference/display-lcd.md)
- [Lcd Functions Overview](https://luadoc.edgetx.org/2.11/lua-api-reference/display-lcd/lcd-functions-overview.md)
- [lcd.clear](https://luadoc.edgetx.org/2.11/lua-api-reference/display-lcd/clear.md)
- [lcd.drawBitmap](https://luadoc.edgetx.org/2.11/lua-api-reference/display-lcd/drawbitmap.md)
- [lcd.drawChannel](https://luadoc.edgetx.org/2.11/lua-api-reference/display-lcd/drawchannel.md)
- [lcd.drawCombobox(x, y, w, list, idx \[, flags\])](https://luadoc.edgetx.org/2.11/lua-api-reference/display-lcd/drawcombobox.md)
- [lcd.drawFilledRectangle(x, y, w, h \[, flags\])](https://luadoc.edgetx.org/2.11/lua-api-reference/display-lcd/drawfilledrectangle.md)
- [lcd.drawGauge(x, y, w, h, fill, maxfill \[, flags\])](https://luadoc.edgetx.org/2.11/lua-api-reference/display-lcd/drawgauge.md)
- [lcd.drawLine(x1, y1, x2, y2, pattern, flags)](https://luadoc.edgetx.org/2.11/lua-api-reference/display-lcd/drawline.md)
- [lcd.drawNumber(x, y, value \[, flags\])](https://luadoc.edgetx.org/2.11/lua-api-reference/display-lcd/drawnumber.md)
- [lcd.drawPixmap](https://luadoc.edgetx.org/2.11/lua-api-reference/display-lcd/drawpixmap.md)
- [lcd.drawPoint(x, y)](https://luadoc.edgetx.org/2.11/lua-api-reference/display-lcd/drawpoint.md)
- [lcd.drawRectangle(x, y, w, h \[, flags \[, t\]\])](https://luadoc.edgetx.org/2.11/lua-api-reference/display-lcd/drawrectangle.md)
- [lcd.drawScreenTitle(title, page, pages)](https://luadoc.edgetx.org/2.11/lua-api-reference/display-lcd/drawscreentitle.md)
- [lcd.drawSource(x, y, source \[, flags\])](https://luadoc.edgetx.org/2.11/lua-api-reference/display-lcd/drawsource.md)
- [lcd.drawSwitch(x, y, switch, flags)](https://luadoc.edgetx.org/2.11/lua-api-reference/display-lcd/drawswitch.md)
- [lcd.drawText(x, y, text \[, flags\])](https://luadoc.edgetx.org/2.11/lua-api-reference/display-lcd/drawtext.md)
- [lcd.drawTimer(x, y, value \[, flags\])](https://luadoc.edgetx.org/2.11/lua-api-reference/display-lcd/drawtimer.md)
- [lcd.drawAnnulus(x, y, r1, r2, start, end \[, flags\])](https://luadoc.edgetx.org/2.11/lua-api-reference/display-lcd/drawannulus.md)
- [lcd.drawArc(x, y, r, start, end \[, flags\])](https://luadoc.edgetx.org/2.11/lua-api-reference/display-lcd/drawarc.md)
- [lcd.drawCircle(x, y, r \[, flags\])](https://luadoc.edgetx.org/2.11/lua-api-reference/display-lcd/drawcircle.md)
- [lcd.drawFilledCircle(x, y, r \[, flags\])](https://luadoc.edgetx.org/2.11/lua-api-reference/display-lcd/drawfilledcircle.md)
- [lcd.drawFilledTriangle(x1, y1, x2, y2, x3, y3 \[, flags\])](https://luadoc.edgetx.org/2.11/lua-api-reference/display-lcd/drawfilledtriangle.md)
- [lcd.drawHudRectangle(pitch, roll, xmin, xmax, ymin, ymax \[, flags\])](https://luadoc.edgetx.org/2.11/lua-api-reference/display-lcd/drawhudrectangle.md)
- [lcd.drawLineWithClipping(x1, y1, x2, y2, xmin, xmax, ymin, ymax, pattern \[, flags\])](https://luadoc.edgetx.org/2.11/lua-api-reference/display-lcd/drawlinewithclipping.md)
- [lcd.drawPie(x, y, r, start, end \[, flags\])](https://luadoc.edgetx.org/2.11/lua-api-reference/display-lcd/drawpie.md)
- [lcd.drawTriangle(x1, y1, x2, y2, x3, y3 \[, flags\])](https://luadoc.edgetx.org/2.11/lua-api-reference/display-lcd/drawtriangle.md)
- [lcd.getColor(area)](https://luadoc.edgetx.org/2.11/lua-api-reference/display-lcd/getcolor.md)
- [lcd.getLastLeftPos()](https://luadoc.edgetx.org/2.11/lua-api-reference/display-lcd/getlastleftpos.md)
- [lcd.getLastPos()](https://luadoc.edgetx.org/2.11/lua-api-reference/display-lcd/getlastpos.md)
- [lcd.getLastRightPos()](https://luadoc.edgetx.org/2.11/lua-api-reference/display-lcd/getlastrightpos.md)
- [lcd.drawBitmapPattern(bitmap, x, y \[, flags\])](https://luadoc.edgetx.org/2.11/lua-api-reference/display-lcd/lcd.drawbitmappattern.md)
- [lcd.drawBitmapPatternPie(bitmap, x, y, startAngle, endAngle \[, flags\])](https://luadoc.edgetx.org/2.11/lua-api-reference/display-lcd/lcd.drawbitmappatternpie.md)
- [lcd.drawTextLines(x, y, w, h, text \[, flags\])](https://luadoc.edgetx.org/2.11/lua-api-reference/display-lcd/lcd.drawtextlines.md)
- [lcd.exitFullScreen()](https://luadoc.edgetx.org/2.11/lua-api-reference/display-lcd/lcd.exitfullscreen.md)
- [lcd.invertRect(x, y, w, h \[, flags\])](https://luadoc.edgetx.org/2.11/lua-api-reference/display-lcd/lcd.invertrect.md)
- [lcd.refresh()](https://luadoc.edgetx.org/2.11/lua-api-reference/display-lcd/refresh.md)
- [lcd.RGB](https://luadoc.edgetx.org/2.11/lua-api-reference/display-lcd/rgb.md)
- [lcd.resetBacklightTimeout()](https://luadoc.edgetx.org/2.11/lua-api-reference/display-lcd/resetbacklighttimeout.md)
- [lcd.setColor(area, color)](https://luadoc.edgetx.org/2.11/lua-api-reference/display-lcd/setcolor.md)
- [lcd.sizeText(text \[, flags\])](https://luadoc.edgetx.org/2.11/lua-api-reference/display-lcd/sizetext.md)
- [popupConfirmation(title, message, event)](https://luadoc.edgetx.org/2.11/lua-api-reference/display-lcd/popupconfirmation.md)
- [popupInput(title, event, input, min, max)](https://luadoc.edgetx.org/2.11/lua-api-reference/display-lcd/popupinput.md)
- [popupWarning(title, event)](https://luadoc.edgetx.org/2.11/lua-api-reference/display-lcd/popupwarning.md)
- [GREY()](https://luadoc.edgetx.org/2.11/lua-api-reference/display-lcd/grey.md)
- [LVGL for Lua](https://luadoc.edgetx.org/2.11/lua-api-reference/lvgl-for-lua.md): The API for adding and using LVGL widgets in Lua scripts.
- [Overview](https://luadoc.edgetx.org/2.11/lua-api-reference/lvgl-for-lua/overview.md)
- [Examples](https://luadoc.edgetx.org/2.11/lua-api-reference/lvgl-for-lua/examples.md): Some simple example scripts to set the stage.
- [Constants](https://luadoc.edgetx.org/2.11/lua-api-reference/lvgl-for-lua/constants.md): Constants defined for use in LVGL layouts.
- [API](https://luadoc.edgetx.org/2.11/lua-api-reference/lvgl-for-lua/api.md)
- [lvgl.align](https://luadoc.edgetx.org/2.11/lua-api-reference/lvgl-for-lua/lvgl.align.md): Display a button showing a text alignment name. When tapped a popup menu is opened to choose a text alignment from. Uses EdgeTX styling.
- [lvgl.arc](https://luadoc.edgetx.org/2.11/lua-api-reference/lvgl-for-lua/lvgl.arc.md): Display an arc.
- [lvgl.box](https://luadoc.edgetx.org/2.11/lua-api-reference/lvgl-for-lua/lvgl.box.md): Create a container for managing object layout.
- [lvgl.build](https://luadoc.edgetx.org/2.11/lua-api-reference/lvgl-for-lua/lvgl.build.md): Build a complex UI in a single operation.
- [lvgl.button](https://luadoc.edgetx.org/2.11/lua-api-reference/lvgl-for-lua/lvgl.button.md): Add a text button using the EdgeTX style.
- [lvgl.choice](https://luadoc.edgetx.org/2.11/lua-api-reference/lvgl-for-lua/lvgl.choice.md): Display a button showing an option value. When tapped a popup menu is opened with multiple options to choose from. Uses EdgeTX styling.
- [lvgl.file](https://luadoc.edgetx.org/2.11/lua-api-reference/lvgl-for-lua/lvgl.file.md): Display a button showing a filename. When tapped a popup file picker is opened. Uses EdgeTX styling.
- [lvgl.circle](https://luadoc.edgetx.org/2.11/lua-api-reference/lvgl-for-lua/lvgl.circle.md): Display a solid or filled circle.
- [lvgl.clear](https://luadoc.edgetx.org/2.11/lua-api-reference/lvgl-for-lua/lvgl.clear.md): Delete LVGL objects.
- [lvgl.color](https://luadoc.edgetx.org/2.11/lua-api-reference/lvgl-for-lua/lvgl.color.md): Display a button showing a color swatch. When tapped the color picker dialog is opened allowing the user to select a new color. Uses EdgeTX styling.
- [lvgl.confirm](https://luadoc.edgetx.org/2.11/lua-api-reference/lvgl-for-lua/lvgl.confirm.md): Display a 'Yes' / 'No' confirmation dialog box.
- [lvgl.dialog](https://luadoc.edgetx.org/2.11/lua-api-reference/lvgl-for-lua/lvgl.dialog.md): Display a dialog box.
- [lvgl.isAppMode](https://luadoc.edgetx.org/2.11/lua-api-reference/lvgl-for-lua/lvgl.isappmode.md): Test if widget is running in App Mode.
- [lvgl.isFullScreen](https://luadoc.edgetx.org/2.11/lua-api-reference/lvgl-for-lua/lvgl.isfullscreen.md): Test if widget is running in full screen mode.
- [lvgl.exitFullScreen](https://luadoc.edgetx.org/2.11/lua-api-reference/lvgl-for-lua/lvgl.exitfullscreen.md): If widget is running in full screen mode, then return to normal mode.
- [lvgl.font](https://luadoc.edgetx.org/2.11/lua-api-reference/lvgl-for-lua/lvgl.font.md): Display a button showing a font name. When tapped a popup menu is opened to choose a font from. Uses EdgeTX styling.
- [lvgl.getContext](https://luadoc.edgetx.org/2.11/lua-api-reference/lvgl-for-lua/lvgl.getcontext.md): For a widget, returns the local instance table created (and returned from) the script 'create()' function.
- [lvgl.getScrollPos](https://luadoc.edgetx.org/2.11/lua-api-reference/lvgl-for-lua/lvgl.getscrollpos.md): Get the current scroll position (X, Y) of a container object.
- [lvgl.hide](https://luadoc.edgetx.org/2.11/lua-api-reference/lvgl-for-lua/lvgl.hide.md): Hide an LVGL object.
- [lvgl.hline](https://luadoc.edgetx.org/2.11/lua-api-reference/lvgl-for-lua/lvgl.hline.md): Display a horizontal line.
- [lvgl.image](https://luadoc.edgetx.org/2.11/lua-api-reference/lvgl-for-lua/lvgl.image.md): Display an image. The image will be centered in the frame (x, y, w, h). Images can be scaled to either fit entirely within the frame or completely fill the frame.
- [lvgl.label](https://luadoc.edgetx.org/2.11/lua-api-reference/lvgl-for-lua/lvgl.label.md): Display a text label.
- [lvgl.line](https://luadoc.edgetx.org/2.11/lua-api-reference/lvgl-for-lua/lvgl.line.md): Display one or more connected lines.
- [lvgl.menu](https://luadoc.edgetx.org/2.11/lua-api-reference/lvgl-for-lua/lvgl.menu.md): Opens a popup menu with multiple options to choose from. Uses EdgeTX styling.
- [lvgl.message](https://luadoc.edgetx.org/2.11/lua-api-reference/lvgl-for-lua/lvgl.message.md): Display a message dialog box.
- [lvgl.momentaryButton](https://luadoc.edgetx.org/2.11/lua-api-reference/lvgl-for-lua/lvgl.momentarybutton.md): Add a momentary text button using the EdgeTX style.
- [lvgl.numberEdit](https://luadoc.edgetx.org/2.11/lua-api-reference/lvgl-for-lua/lvgl.numberedit.md): Add a number edit box using the EdgeTX style.
- [lvgl.page](https://luadoc.edgetx.org/2.11/lua-api-reference/lvgl-for-lua/lvgl.page.md): Create a page layout for a One-Time script using EdgeTX styling. The page layout has a menu bar at the top with title and sub-title lines as well as a 'back' button in the top left corner.
- [lvgl.qrcode](https://luadoc.edgetx.org/2.11/lua-api-reference/lvgl-for-lua/lvgl.qrcode.md): Display a QR code.
- [lvgl.rectangle](https://luadoc.edgetx.org/2.11/lua-api-reference/lvgl-for-lua/lvgl.rectangle.md): Display a text label.
- [lvgl.set](https://luadoc.edgetx.org/2.11/lua-api-reference/lvgl-for-lua/lvgl.set.md): Update the settings for an LVGL object.
- [lvgl.setting](https://luadoc.edgetx.org/2.11/lua-api-reference/lvgl-for-lua/lvgl.setting.md): Create a container for managing object layout.
- [lvgl.show](https://luadoc.edgetx.org/2.11/lua-api-reference/lvgl-for-lua/lvgl.show.md): Show an LVGL object.
- [lvgl.slider](https://luadoc.edgetx.org/2.11/lua-api-reference/lvgl-for-lua/lvgl.slider.md): Add a slider using the EdgeTX style.
- [lvgl.verticalSlider](https://luadoc.edgetx.org/2.11/lua-api-reference/lvgl-for-lua/lvgl.verticalslider.md): Add a slider using the EdgeTX style with vertical orientation .
- [lvgl.source](https://luadoc.edgetx.org/2.11/lua-api-reference/lvgl-for-lua/lvgl.source.md): Display a button showing a source name. When tapped the switch select popup is opened to allow the user to select a new source. Uses EdgeTX styling.
- [lvgl.switch](https://luadoc.edgetx.org/2.11/lua-api-reference/lvgl-for-lua/lvgl.switch.md): Display a button showing a switch name. When tapped the switch select popup is opened to allow the user to select a new switch. Uses EdgeTX styling.
- [lvgl.textEdit](https://luadoc.edgetx.org/2.11/lua-api-reference/lvgl-for-lua/lvgl.textedit.md): Add a text edit box using the EdgeTX style.
- [lvgl.timer](https://luadoc.edgetx.org/2.11/lua-api-reference/lvgl-for-lua/lvgl.timer.md): Display a button showing a timer name. When tapped a popup menu is opened to choose a timer from. Uses EdgeTX styling.
- [lvgl.toggle](https://luadoc.edgetx.org/2.11/lua-api-reference/lvgl-for-lua/lvgl.toggle.md): Add a toggle switch using the EdgeTX style.
- [lvgl.triangle](https://luadoc.edgetx.org/2.11/lua-api-reference/lvgl-for-lua/lvgl.triangle.md): Display a filled triangle.
- [lvgl.vline](https://luadoc.edgetx.org/2.11/lua-api-reference/lvgl-for-lua/lvgl.vline.md): Display a vertical line.
- [Model Functions](https://luadoc.edgetx.org/2.11/lua-api-reference/model.md)
- [model.defaultInputs](https://luadoc.edgetx.org/2.11/lua-api-reference/model/defaultinputs.md)
- [model.deleteFlightModes](https://luadoc.edgetx.org/2.11/lua-api-reference/model/deleteflightmodes.md)
- [model.deleteInput](https://luadoc.edgetx.org/2.11/lua-api-reference/model/deleteinput.md)
- [model.deleteInputs](https://luadoc.edgetx.org/2.11/lua-api-reference/model/deleteinputs.md)
- [model.deleteMix](https://luadoc.edgetx.org/2.11/lua-api-reference/model/deletemix.md)
- [model.deleteMixes](https://luadoc.edgetx.org/2.11/lua-api-reference/model/deletemixes.md)
- [model.getCurve](https://luadoc.edgetx.org/2.11/lua-api-reference/model/getcurve.md)
- [model.getCustomFunction(function)](https://luadoc.edgetx.org/2.11/lua-api-reference/model/getcustomfunction.md)
- [model.getFlightMode(index)](https://luadoc.edgetx.org/2.11/lua-api-reference/model/getflightmode.md)
- [model.getGlobalVariable(index, flight\_mode)](https://luadoc.edgetx.org/2.11/lua-api-reference/model/getglobalvariable.md)
- [model.getInfo](https://luadoc.edgetx.org/2.11/lua-api-reference/model/getinfo.md)
- [model.getInput(input, line)](https://luadoc.edgetx.org/2.11/lua-api-reference/model/getinput.md)
- [model.getInputsCount(input)](https://luadoc.edgetx.org/2.11/lua-api-reference/model/getinputscount.md)
- [model.getLogicalSwitch(switch)](https://luadoc.edgetx.org/2.11/lua-api-reference/model/getlogicalswitch.md)
- [model.getMix(channel, line)](https://luadoc.edgetx.org/2.11/lua-api-reference/model/getmix.md)
- [model.getMixesCount(channel)](https://luadoc.edgetx.org/2.11/lua-api-reference/model/getmixescount.md)
- [model.getModule(index)](https://luadoc.edgetx.org/2.11/lua-api-reference/model/getmodule.md)
- [model.getOutput(index)](https://luadoc.edgetx.org/2.11/lua-api-reference/model/getoutput.md)
- [model.getSensor(sensor)](https://luadoc.edgetx.org/2.11/lua-api-reference/model/getsensor.md)
- [model.getTimer(timer)](https://luadoc.edgetx.org/2.11/lua-api-reference/model/gettimer.md)
- [model.insertInput(input, line, value)](https://luadoc.edgetx.org/2.11/lua-api-reference/model/insertinput.md)
- [model.insertMix(channel, line, value)](https://luadoc.edgetx.org/2.11/lua-api-reference/model/insertmix.md)
- [model.getSwashRing()](https://luadoc.edgetx.org/2.11/lua-api-reference/model/model.getswashring.md)
- [model.setSwashRing(params)](https://luadoc.edgetx.org/2.11/lua-api-reference/model/model.setswashring-params.md)
- [model.resetSensor(sensor)](https://luadoc.edgetx.org/2.11/lua-api-reference/model/resetsensor.md)
- [model.resetTimer(timer)](https://luadoc.edgetx.org/2.11/lua-api-reference/model/resettimer.md)
- [model.setCurve(curve, params)](https://luadoc.edgetx.org/2.11/lua-api-reference/model/setcurve.md)
- [model.setCustomFunction(function, value)](https://luadoc.edgetx.org/2.11/lua-api-reference/model/setcustomfunction.md)
- [model.setFlightMode(index, params)](https://luadoc.edgetx.org/2.11/lua-api-reference/model/setflightmode.md)
- [model.setGlobalVariable(index, flight\_mode, value)](https://luadoc.edgetx.org/2.11/lua-api-reference/model/setglobalvariable.md)
- [model.setInfo(value)](https://luadoc.edgetx.org/2.11/lua-api-reference/model/setinfo.md)
- [model.setLogicalSwitch(switch, value)](https://luadoc.edgetx.org/2.11/lua-api-reference/model/setlogicalswitch.md)
- [model.setModule(index, value)](https://luadoc.edgetx.org/2.11/lua-api-reference/model/setmodule.md)
- [model.setOutput(index, value)](https://luadoc.edgetx.org/2.11/lua-api-reference/model/setoutput.md)
- [model.setTimer(timer, value)](https://luadoc.edgetx.org/2.11/lua-api-reference/model/settimer.md)
- [Bitmap Functions](https://luadoc.edgetx.org/2.11/lua-api-reference/bitmap.md)
- [Bitmap.resize(bitmap, width, height)](https://luadoc.edgetx.org/2.11/lua-api-reference/bitmap/bitmap.resize.md)
- [Bitmap.toMask(bitmap)](https://luadoc.edgetx.org/2.11/lua-api-reference/bitmap/bitmap.tomask.md)
- [Bitmap.getSize(name)](https://luadoc.edgetx.org/2.11/lua-api-reference/bitmap/getsize.md)
- [Bitmap.open(name)](https://luadoc.edgetx.org/2.11/lua-api-reference/bitmap/open.md)
- [Filesystem](https://luadoc.edgetx.org/2.11/lua-api-reference/filesystem.md)
- [chdir(directory)](https://luadoc.edgetx.org/2.11/lua-api-reference/filesystem/chdir.md)
- [del(file or directory)](https://luadoc.edgetx.org/2.11/lua-api-reference/filesystem/del.md)
- [dir(directory)](https://luadoc.edgetx.org/2.11/lua-api-reference/filesystem/dir.md)
- [fstat(path)](https://luadoc.edgetx.org/2.11/lua-api-reference/filesystem/fstat.md)
- [Serial Ports](https://luadoc.edgetx.org/2.11/lua-api-reference/serial-ports.md)
- [serialGetPower(port\_nr)](https://luadoc.edgetx.org/2.11/lua-api-reference/serial-ports/serialgetpower.md)
- [serialRead(\[num\])](https://luadoc.edgetx.org/2.11/lua-api-reference/serial-ports/serialread.md)
- [serialSetPower(port\_nr, value)](https://luadoc.edgetx.org/2.11/lua-api-reference/serial-ports/serialsetpower.md)
- [serialWrite(str)](https://luadoc.edgetx.org/2.11/lua-api-reference/serial-ports/serialwrite.md)
- [setSerialBaudrate(baudrate)](https://luadoc.edgetx.org/2.11/lua-api-reference/serial-ports/setserialbaudrate.md)
- [System](https://luadoc.edgetx.org/2.11/lua-api-reference/system.md)
- [defaultChannel(stick)](https://luadoc.edgetx.org/2.11/lua-api-reference/system/defaultchannel.md)
- [defaultStick(channel)](https://luadoc.edgetx.org/2.11/lua-api-reference/system/defaultstick.md)
- [getGeneralSettings()](https://luadoc.edgetx.org/2.11/lua-api-reference/system/getgeneralsettings.md)
- [getVersion()](https://luadoc.edgetx.org/2.11/lua-api-reference/system/getversion.md)
- [screenshot()](https://luadoc.edgetx.org/2.11/lua-api-reference/system/rgb.md)
- [Key Inputs](https://luadoc.edgetx.org/2.11/lua-api-reference/key-inputs.md)
- [getRotEncMode()](https://luadoc.edgetx.org/2.11/lua-api-reference/key-inputs/getrotencmode.md)
- [getRotEncSpeed()](https://luadoc.edgetx.org/2.11/lua-api-reference/key-inputs/getrotencspeed.md)
- [killEvents(key)](https://luadoc.edgetx.org/2.11/lua-api-reference/key-inputs/killevents.md)
- [LUA Scripts](https://luadoc.edgetx.org/2.11/lua-api-reference/lua-scripts.md)
- [getAvailableMemory()](https://luadoc.edgetx.org/2.11/lua-api-reference/lua-scripts/getavailablememory.md)
- [getUsage()](https://luadoc.edgetx.org/2.11/lua-api-reference/lua-scripts/getusage.md)
- [loadScript(file \[, mode\], \[,env\])](https://luadoc.edgetx.org/2.11/lua-api-reference/lua-scripts/loadscript.md)
- [Time](https://luadoc.edgetx.org/2.11/lua-api-reference/time.md)
- [getDateTime()](https://luadoc.edgetx.org/2.11/lua-api-reference/time/getdatetime.md)
- [getGlobalTimer()](https://luadoc.edgetx.org/2.11/lua-api-reference/time/getglobaltimer.md)
- [getRtcTime()](https://luadoc.edgetx.org/2.11/lua-api-reference/time/getrtctime.md)
- [getTime()](https://luadoc.edgetx.org/2.11/lua-api-reference/time/gettime.md)
- [resetGlobalTimer(\[type\])](https://luadoc.edgetx.org/2.11/lua-api-reference/time/resetglobaltimer.md)
- [Audio-Sound](https://luadoc.edgetx.org/2.11/lua-api-reference/audio-sound.md)
- [playDuration(duration \[, hourFormat\])](https://luadoc.edgetx.org/2.11/lua-api-reference/audio-sound/playduration.md): Play a time value (text to speech)
- [playFile(name)](https://luadoc.edgetx.org/2.11/lua-api-reference/audio-sound/playfile.md): Play a file from the SD card
- [playHaptic(duration, pause \[, flags\])](https://luadoc.edgetx.org/2.11/lua-api-reference/audio-sound/playhaptic.md)
- [playNumber(value, unit \[, attributes\])](https://luadoc.edgetx.org/2.11/lua-api-reference/audio-sound/playnumber.md): Play a numerical value (text to speech)
- [playTone(frequency, duration, pause \[, flags \[, freqIncr\]\])](https://luadoc.edgetx.org/2.11/lua-api-reference/audio-sound/playtone.md): Play a tone
- [flushAudio()](https://luadoc.edgetx.org/2.11/lua-api-reference/audio-sound/flushaudio.md)
- [Telemetry](https://luadoc.edgetx.org/2.11/lua-api-reference/telemetry.md)
- [getRSSI()](https://luadoc.edgetx.org/2.11/lua-api-reference/telemetry/getrssi.md)
- [RF module](https://luadoc.edgetx.org/2.11/lua-api-reference/rf-module.md)
- [accessTelemetryPush()](https://luadoc.edgetx.org/2.11/lua-api-reference/rf-module/accesstelemetrypush.md)
- [crossfireTelemetryPop()](https://luadoc.edgetx.org/2.11/lua-api-reference/rf-module/crossfiretelemetrypop.md)
- [crossfireTelemetryPush()](https://luadoc.edgetx.org/2.11/lua-api-reference/rf-module/crossfiretelemetrypush.md)
- [ghostTelemetryPop()](https://luadoc.edgetx.org/2.11/lua-api-reference/rf-module/ghosttelemetrypop.md)
- [ghostTelemetryPush()](https://luadoc.edgetx.org/2.11/lua-api-reference/rf-module/ghosttelemetrypush.md)
- [sportTelemetryPop()](https://luadoc.edgetx.org/2.11/lua-api-reference/rf-module/sporttelemetrypop.md)
- [sportTelemetryPush()](https://luadoc.edgetx.org/2.11/lua-api-reference/rf-module/sporttelemetrypush.md)
- [getRAS()](https://luadoc.edgetx.org/2.11/lua-api-reference/rf-module/getras.md)
- [multiBuffer(address\[,value\])](https://luadoc.edgetx.org/2.11/lua-api-reference/rf-module/multibuffer-address-value.md)
- [GPS](https://luadoc.edgetx.org/2.11/lua-api-reference/gps.md)
- [getTxGPS()](https://luadoc.edgetx.org/2.11/lua-api-reference/gps/gettxgps.md)
- [Variables](https://luadoc.edgetx.org/2.11/lua-api-reference/variables.md)
- [getFieldInfo(source)](https://luadoc.edgetx.org/2.11/lua-api-reference/variables/getfieldinfo.md)
- [getFlightMode(mode)](https://luadoc.edgetx.org/2.11/lua-api-reference/variables/getflightmode.md)
- [getLogicalSwitchValue(id)](https://luadoc.edgetx.org/2.11/lua-api-reference/variables/getlogicalswitchvalue.md)
- [getOutputValue(outputIndex)](https://luadoc.edgetx.org/2.11/lua-api-reference/variables/getoutputvalue.md)
- [getShmVar(id)](https://luadoc.edgetx.org/2.11/lua-api-reference/variables/getshmvar.md)
- [getSourceIndex(sourceName)](https://luadoc.edgetx.org/2.11/lua-api-reference/variables/getsourceindex.md)
- [getSourceName(sourceIndex)](https://luadoc.edgetx.org/2.11/lua-api-reference/variables/getsourcename.md)
- [getSourceValue(source)](https://luadoc.edgetx.org/2.11/lua-api-reference/variables/getsourcevalue.md)
- [getSwitchIndex(positionName)](https://luadoc.edgetx.org/2.11/lua-api-reference/variables/getswitchindex.md)
- [getSwitchName(switchIndex)](https://luadoc.edgetx.org/2.11/lua-api-reference/variables/getswitchname.md)
- [getSwitchValue(switchIndex)](https://luadoc.edgetx.org/2.11/lua-api-reference/variables/getswitchvalue.md)
- [getValue(source)](https://luadoc.edgetx.org/2.11/lua-api-reference/variables/getvalue.md)
- [setShmVar(id, value)](https://luadoc.edgetx.org/2.11/lua-api-reference/variables/setshmvar.md)
- [setStickySwitch(id, value)](https://luadoc.edgetx.org/2.11/lua-api-reference/variables/setstickyswitch.md)
- [sources(\[first\[, last\]\])](https://luadoc.edgetx.org/2.11/lua-api-reference/variables/sources.md)
- [switches(\[first\[, last\]\])](https://luadoc.edgetx.org/2.11/lua-api-reference/variables/switches.md)
- [LUA API Programming](https://luadoc.edgetx.org/2.11/lua-api-programming.md)
- [Data Exchange with the EdgeTX Model Setup](https://luadoc.edgetx.org/2.11/lua-api-programming/data-exchange-with-the-edgetx-model-setup.md): An EdgeTX model has several data components that can be exchanged with Lua scripts. This section gives an overview.
- [Drawing Flags and Colors](https://luadoc.edgetx.org/2.11/lua-api-programming/drawing-flags-and-colors.md): This section will give some technical details for radios with a color screen.
- [Init Function Syntax](https://luadoc.edgetx.org/2.11/lua-api-programming/init-function-syntax.md)
- [Input Table Syntax](https://luadoc.edgetx.org/2.11/lua-api-programming/input-table-syntax.md)
- [Loading Code Modules Dynamically](https://luadoc.edgetx.org/2.11/lua-api-programming/loading-code-modules-dynamically.md): Lua makes it easy to load and unload code modules on the fly, to save memory or to provide program extensions.
- [Output Table Syntax](https://luadoc.edgetx.org/2.11/lua-api-programming/output-table-syntax.md)
- [Return Statement Syntax](https://luadoc.edgetx.org/2.11/lua-api-programming/return-statement-syntax.md)
- [Run Function Syntax](https://luadoc.edgetx.org/2.11/lua-api-programming/run-function-syntax.md)
- [Saving Memory](https://luadoc.edgetx.org/2.11/lua-api-programming/saving-memory.md): This chapter will show you some ways that large script projects can be fitted into the limited memory of our radios.
- [Using Key and Touch Events](https://luadoc.edgetx.org/2.11/lua-api-programming/using-key-and-touch-events.md): This section will discuss how interactive scripts receiving user inputs via key and touch events can be created.
- [Advanced Topics](https://luadoc.edgetx.org/2.11/lua-api-programming/advanced-topics.md)
- [Debugging techniques](https://luadoc.edgetx.org/2.11/lua-api-programming/advanced-topics/debugging-techniques.md)
- [Lua data sharing across scripts](https://luadoc.edgetx.org/2.11/lua-api-programming/advanced-topics/lua-data-sharing-across-scripts.md)
- [Speed/memory optimizaton tricks](https://luadoc.edgetx.org/2.11/lua-api-programming/advanced-topics/optimization-tricks.md)
- [Appendixes](https://luadoc.edgetx.org/2.11/appendix.md)
- [Fonts](https://luadoc.edgetx.org/2.11/appendix/fonts.md)

## 2.12

- [EdgeTX LUA Reference Guide](https://luadoc.edgetx.org/readme.md)
- [Overview](https://luadoc.edgetx.org/overview.md): This section covers various topics of LUA implementation in EdgeTX operating system system
- [Lua Basics](https://luadoc.edgetx.org/overview/lua-basics.md): Lua is a small but powerful language. This section will explain a few of the most important concepts.
- [LUA version and included libraries](https://luadoc.edgetx.org/overview/version-libraries.md)
- [io Library](https://luadoc.edgetx.org/overview/version-libraries/io-library.md)
- [Script Types](https://luadoc.edgetx.org/overview/script-types.md): This section introduces the types of Lua scripts supported by EdgeTX and how they may be used.
- [One-Time Scripts](https://luadoc.edgetx.org/overview/script-types/one-time-scripts.md)
- [Telemetry Scripts](https://luadoc.edgetx.org/overview/script-types/telemetry-scripts.md)
- [Widget Scripts](https://luadoc.edgetx.org/overview/script-types/widget-scripts.md)
- [Function Scripts](https://luadoc.edgetx.org/overview/script-types/function-scripts.md)
- [Mixes Scripts](https://luadoc.edgetx.org/overview/script-types/mixes-scripts.md)
- [Radios](https://luadoc.edgetx.org/overview/radios.md)
- [BetaFPV](https://luadoc.edgetx.org/overview/radios/betafpv.md)
- [FlySky](https://luadoc.edgetx.org/overview/radios/flysky.md)
- [FrSky](https://luadoc.edgetx.org/overview/radios/frsky.md)
- [Jumper](https://luadoc.edgetx.org/overview/radios/jumper.md)
- [Radiomaster](https://luadoc.edgetx.org/overview/radios/radiomaster.md)
- [TX16S](https://luadoc.edgetx.org/overview/radios/radiomaster/tx16s.md)
- [Internal indexes](https://luadoc.edgetx.org/overview/internal-indexes.md)
- [Source List](https://luadoc.edgetx.org/overview/internal-indexes/source-list.md)
- [Switch Positions List](https://luadoc.edgetx.org/overview/internal-indexes/switch-positions-id.md)
- [LUA API Reference](https://luadoc.edgetx.org/lua-api-reference.md)
- [Constants](https://luadoc.edgetx.org/lua-api-reference/constants.md): This section describes various constants that are provided for Lua by EdgeTX.
- [Color Constants](https://luadoc.edgetx.org/lua-api-reference/constants/color-constants.md): On radios with color display, a color may be added to the flags described above.
- [Flags and Pattern Constants](https://luadoc.edgetx.org/lua-api-reference/constants/flags-and-pattern-constants.md): Many of the lcd functions accept parameters named flags and patterns. The names and their meanings are described below.
- [Key Event Constants](https://luadoc.edgetx.org/lua-api-reference/constants/key-event-constants.md)
- [Logical Switch Function Constants](https://luadoc.edgetx.org/lua-api-reference/constants/logical-switch-function-constants.md): These constants are used with logical switch functions.
- [Screen Constants](https://luadoc.edgetx.org/lua-api-reference/constants/screen-constants.md)
- [Special Character Constants](https://luadoc.edgetx.org/lua-api-reference/constants/special-character-constants.md): The radio's special characters can be used with the following text constants.
- [Special Function Constants](https://luadoc.edgetx.org/lua-api-reference/constants/special-function-constants.md): These constants determine the type of a Special Function
- [Touch Event Constants](https://luadoc.edgetx.org/lua-api-reference/constants/touch-event-constants.md): In addition to the key events described in the previous section, radios with a color touch screen also provide touch events to the widget scripts.
- [Widget Options Constants](https://luadoc.edgetx.org/lua-api-reference/constants/widget-options.md)
- [Units](https://luadoc.edgetx.org/lua-api-reference/constants/units.md)
- [Display LCD](https://luadoc.edgetx.org/lua-api-reference/display-lcd.md)
- [Lcd Functions Overview](https://luadoc.edgetx.org/lua-api-reference/display-lcd/lcd-functions-overview.md)
- [lcd.clear](https://luadoc.edgetx.org/lua-api-reference/display-lcd/clear.md)
- [lcd.drawBitmap](https://luadoc.edgetx.org/lua-api-reference/display-lcd/drawbitmap.md)
- [lcd.drawChannel](https://luadoc.edgetx.org/lua-api-reference/display-lcd/drawchannel.md)
- [lcd.drawCombobox(x, y, w, list, idx \[, flags\])](https://luadoc.edgetx.org/lua-api-reference/display-lcd/drawcombobox.md)
- [lcd.drawFilledRectangle(x, y, w, h \[, flags\])](https://luadoc.edgetx.org/lua-api-reference/display-lcd/drawfilledrectangle.md)
- [lcd.drawGauge(x, y, w, h, fill, maxfill \[, flags\])](https://luadoc.edgetx.org/lua-api-reference/display-lcd/drawgauge.md)
- [lcd.drawLine(x1, y1, x2, y2, pattern, flags)](https://luadoc.edgetx.org/lua-api-reference/display-lcd/drawline.md)
- [lcd.drawNumber(x, y, value \[, flags\])](https://luadoc.edgetx.org/lua-api-reference/display-lcd/drawnumber.md)
- [lcd.drawPixmap](https://luadoc.edgetx.org/lua-api-reference/display-lcd/drawpixmap.md)
- [lcd.drawPoint(x, y)](https://luadoc.edgetx.org/lua-api-reference/display-lcd/drawpoint.md)
- [lcd.drawRectangle(x, y, w, h \[, flags \[, t\]\])](https://luadoc.edgetx.org/lua-api-reference/display-lcd/drawrectangle.md)
- [lcd.drawScreenTitle(title, page, pages)](https://luadoc.edgetx.org/lua-api-reference/display-lcd/drawscreentitle.md)
- [lcd.drawSource(x, y, source \[, flags\])](https://luadoc.edgetx.org/lua-api-reference/display-lcd/drawsource.md)
- [lcd.drawSwitch(x, y, switch, flags)](https://luadoc.edgetx.org/lua-api-reference/display-lcd/drawswitch.md)
- [lcd.drawText(x, y, text \[, flags\])](https://luadoc.edgetx.org/lua-api-reference/display-lcd/drawtext.md)
- [lcd.drawTimer(x, y, value \[, flags\])](https://luadoc.edgetx.org/lua-api-reference/display-lcd/drawtimer.md)
- [lcd.drawAnnulus(x, y, r1, r2, start, end \[, flags\])](https://luadoc.edgetx.org/lua-api-reference/display-lcd/drawannulus.md)
- [lcd.drawArc(x, y, r, start, end \[, flags\])](https://luadoc.edgetx.org/lua-api-reference/display-lcd/drawarc.md)
- [lcd.drawCircle(x, y, r \[, flags\])](https://luadoc.edgetx.org/lua-api-reference/display-lcd/drawcircle.md)
- [lcd.drawFilledCircle(x, y, r \[, flags\])](https://luadoc.edgetx.org/lua-api-reference/display-lcd/drawfilledcircle.md)
- [lcd.drawFilledTriangle(x1, y1, x2, y2, x3, y3 \[, flags\])](https://luadoc.edgetx.org/lua-api-reference/display-lcd/drawfilledtriangle.md)
- [lcd.drawHudRectangle(pitch, roll, xmin, xmax, ymin, ymax \[, flags\])](https://luadoc.edgetx.org/lua-api-reference/display-lcd/drawhudrectangle.md)
- [lcd.drawLineWithClipping(x1, y1, x2, y2, xmin, xmax, ymin, ymax, pattern \[, flags\])](https://luadoc.edgetx.org/lua-api-reference/display-lcd/drawlinewithclipping.md)
- [lcd.drawPie(x, y, r, start, end \[, flags\])](https://luadoc.edgetx.org/lua-api-reference/display-lcd/drawpie.md)
- [lcd.drawTriangle(x1, y1, x2, y2, x3, y3 \[, flags\])](https://luadoc.edgetx.org/lua-api-reference/display-lcd/drawtriangle.md)
- [lcd.getColor(area)](https://luadoc.edgetx.org/lua-api-reference/display-lcd/getcolor.md)
- [lcd.getLastLeftPos()](https://luadoc.edgetx.org/lua-api-reference/display-lcd/getlastleftpos.md)
- [lcd.getLastPos()](https://luadoc.edgetx.org/lua-api-reference/display-lcd/getlastpos.md)
- [lcd.getLastRightPos()](https://luadoc.edgetx.org/lua-api-reference/display-lcd/getlastrightpos.md)
- [lcd.drawBitmapPattern(bitmap, x, y \[, flags\])](https://luadoc.edgetx.org/lua-api-reference/display-lcd/lcd.drawbitmappattern.md)
- [lcd.drawBitmapPatternPie(bitmap, x, y, startAngle, endAngle \[, flags\])](https://luadoc.edgetx.org/lua-api-reference/display-lcd/lcd.drawbitmappatternpie.md)
- [lcd.drawTextLines(x, y, w, h, text \[, flags\])](https://luadoc.edgetx.org/lua-api-reference/display-lcd/lcd.drawtextlines.md)
- [lcd.exitFullScreen()](https://luadoc.edgetx.org/lua-api-reference/display-lcd/lcd.exitfullscreen.md)
- [lcd.invertRect(x, y, w, h \[, flags\])](https://luadoc.edgetx.org/lua-api-reference/display-lcd/lcd.invertrect.md)
- [lcd.refresh()](https://luadoc.edgetx.org/lua-api-reference/display-lcd/refresh.md)
- [lcd.RGB](https://luadoc.edgetx.org/lua-api-reference/display-lcd/rgb.md)
- [lcd.resetBacklightTimeout()](https://luadoc.edgetx.org/lua-api-reference/display-lcd/resetbacklighttimeout.md)
- [lcd.setColor(area, color)](https://luadoc.edgetx.org/lua-api-reference/display-lcd/setcolor.md)
- [lcd.sizeText(text \[, flags\])](https://luadoc.edgetx.org/lua-api-reference/display-lcd/sizetext.md)
- [popupConfirmation(title, message, event)](https://luadoc.edgetx.org/lua-api-reference/display-lcd/popupconfirmation.md)
- [popupInput(title, event, input, min, max)](https://luadoc.edgetx.org/lua-api-reference/display-lcd/popupinput.md)
- [popupWarning(title, event)](https://luadoc.edgetx.org/lua-api-reference/display-lcd/popupwarning.md)
- [GREY()](https://luadoc.edgetx.org/lua-api-reference/display-lcd/grey.md)
- [LVGL for Lua](https://luadoc.edgetx.org/lua-api-reference/lvgl-for-lua.md): The API for adding and using LVGL widgets in Lua scripts.
- [Overview](https://luadoc.edgetx.org/lua-api-reference/lvgl-for-lua/overview.md)
- [Examples](https://luadoc.edgetx.org/lua-api-reference/lvgl-for-lua/examples.md): Some simple example scripts to set the stage.
- [Constants](https://luadoc.edgetx.org/lua-api-reference/lvgl-for-lua/constants.md): Constants defined for use in LVGL layouts.
- [API](https://luadoc.edgetx.org/lua-api-reference/lvgl-for-lua/api.md)
- [lvgl.align](https://luadoc.edgetx.org/lua-api-reference/lvgl-for-lua/lvgl.align.md): Display a button showing a text alignment name. When tapped a popup menu is opened to choose a text alignment from. Uses EdgeTX styling.
- [lvgl.arc](https://luadoc.edgetx.org/lua-api-reference/lvgl-for-lua/lvgl.arc.md): Display an arc.
- [lvgl.box](https://luadoc.edgetx.org/lua-api-reference/lvgl-for-lua/lvgl.box.md): Create a container for managing object layout.
- [lvgl.build](https://luadoc.edgetx.org/lua-api-reference/lvgl-for-lua/lvgl.build.md): Build a complex UI in a single operation.
- [lvgl.button](https://luadoc.edgetx.org/lua-api-reference/lvgl-for-lua/lvgl.button.md): Add a text button using the EdgeTX style.
- [lvgl.choice](https://luadoc.edgetx.org/lua-api-reference/lvgl-for-lua/lvgl.choice.md): Display a button showing an option value. When tapped a popup menu is opened with multiple options to choose from. Uses EdgeTX styling.
- [lvgl.file](https://luadoc.edgetx.org/lua-api-reference/lvgl-for-lua/lvgl.file.md): Display a button showing a filename. When tapped a popup file picker is opened. Uses EdgeTX styling.
- [lvgl.circle](https://luadoc.edgetx.org/lua-api-reference/lvgl-for-lua/lvgl.circle.md): Display a solid or filled circle.
- [lvgl.clear](https://luadoc.edgetx.org/lua-api-reference/lvgl-for-lua/lvgl.clear.md): Delete LVGL objects.
- [lvgl.color](https://luadoc.edgetx.org/lua-api-reference/lvgl-for-lua/lvgl.color.md): Display a button showing a color swatch. When tapped the color picker dialog is opened allowing the user to select a new color. Uses EdgeTX styling.
- [lvgl.confirm](https://luadoc.edgetx.org/lua-api-reference/lvgl-for-lua/lvgl.confirm.md): Display a 'Yes' / 'No' confirmation dialog box.
- [lvgl.dialog](https://luadoc.edgetx.org/lua-api-reference/lvgl-for-lua/lvgl.dialog.md): Display a dialog box.
- [lvgl.isAppMode](https://luadoc.edgetx.org/lua-api-reference/lvgl-for-lua/lvgl.isappmode.md): Test if widget is running in App Mode.
- [lvgl.isFullScreen](https://luadoc.edgetx.org/lua-api-reference/lvgl-for-lua/lvgl.isfullscreen.md): Test if widget is running in full screen mode.
- [lvgl.exitFullScreen](https://luadoc.edgetx.org/lua-api-reference/lvgl-for-lua/lvgl.exitfullscreen.md): If widget is running in full screen mode, then return to normal mode.
- [lvgl.font](https://luadoc.edgetx.org/lua-api-reference/lvgl-for-lua/lvgl.font.md): Display a button showing a font name. When tapped a popup menu is opened to choose a font from. Uses EdgeTX styling.
- [lvgl.getContext](https://luadoc.edgetx.org/lua-api-reference/lvgl-for-lua/lvgl.getcontext.md): For a widget, returns the local instance table created (and returned from) the script 'create()' function.
- [lvgl.getScrollPos](https://luadoc.edgetx.org/lua-api-reference/lvgl-for-lua/lvgl.getscrollpos.md): Get the current scroll position (X, Y) of a container object.
- [lvgl.hide](https://luadoc.edgetx.org/lua-api-reference/lvgl-for-lua/lvgl.hide.md): Hide an LVGL object.
- [lvgl.hline](https://luadoc.edgetx.org/lua-api-reference/lvgl-for-lua/lvgl.hline.md): Display a horizontal line.
- [lvgl.image](https://luadoc.edgetx.org/lua-api-reference/lvgl-for-lua/lvgl.image.md): Display an image. The image will be centered in the frame (x, y, w, h). Images can be scaled to either fit entirely within the frame or completely fill the frame.
- [lvgl.label](https://luadoc.edgetx.org/lua-api-reference/lvgl-for-lua/lvgl.label.md): Display a text label.
- [lvgl.line](https://luadoc.edgetx.org/lua-api-reference/lvgl-for-lua/lvgl.line.md): Display one or more connected lines.
- [lvgl.menu](https://luadoc.edgetx.org/lua-api-reference/lvgl-for-lua/lvgl.menu.md): Opens a popup menu with multiple options to choose from. Uses EdgeTX styling.
- [lvgl.message](https://luadoc.edgetx.org/lua-api-reference/lvgl-for-lua/lvgl.message.md): Display a message dialog box.
- [lvgl.momentaryButton](https://luadoc.edgetx.org/lua-api-reference/lvgl-for-lua/lvgl.momentarybutton.md): Add a momentary text button using the EdgeTX style.
- [lvgl.numberEdit](https://luadoc.edgetx.org/lua-api-reference/lvgl-for-lua/lvgl.numberedit.md): Add a number edit box using the EdgeTX style.
- [lvgl.page](https://luadoc.edgetx.org/lua-api-reference/lvgl-for-lua/lvgl.page.md): Create a page layout for a One-Time script using EdgeTX styling. The page layout has a menu bar at the top with title and sub-title lines as well as a 'back' button in the top left corner.
- [lvgl.qrcode](https://luadoc.edgetx.org/lua-api-reference/lvgl-for-lua/lvgl.qrcode.md): Display a QR code.
- [lvgl.rectangle](https://luadoc.edgetx.org/lua-api-reference/lvgl-for-lua/lvgl.rectangle.md): Display a text label.
- [lvgl.set](https://luadoc.edgetx.org/lua-api-reference/lvgl-for-lua/lvgl.set.md): Update the settings for an LVGL object.
- [lvgl.setting](https://luadoc.edgetx.org/lua-api-reference/lvgl-for-lua/lvgl.setting.md): Create a container for managing object layout.
- [lvgl.show](https://luadoc.edgetx.org/lua-api-reference/lvgl-for-lua/lvgl.show.md): Show an LVGL object.
- [lvgl.slider](https://luadoc.edgetx.org/lua-api-reference/lvgl-for-lua/lvgl.slider.md): Add a slider using the EdgeTX style.
- [lvgl.verticalSlider](https://luadoc.edgetx.org/lua-api-reference/lvgl-for-lua/lvgl.verticalslider.md): Add a slider using the EdgeTX style with vertical orientation .
- [lvgl.source](https://luadoc.edgetx.org/lua-api-reference/lvgl-for-lua/lvgl.source.md): Display a button showing a source name. When tapped the switch select popup is opened to allow the user to select a new source. Uses EdgeTX styling.
- [lvgl.switch](https://luadoc.edgetx.org/lua-api-reference/lvgl-for-lua/lvgl.switch.md): Display a button showing a switch name. When tapped the switch select popup is opened to allow the user to select a new switch. Uses EdgeTX styling.
- [lvgl.textEdit](https://luadoc.edgetx.org/lua-api-reference/lvgl-for-lua/lvgl.textedit.md): Add a text edit box using the EdgeTX style.
- [lvgl.timer](https://luadoc.edgetx.org/lua-api-reference/lvgl-for-lua/lvgl.timer.md): Display a button showing a timer name. When tapped a popup menu is opened to choose a timer from. Uses EdgeTX styling.
- [lvgl.toggle](https://luadoc.edgetx.org/lua-api-reference/lvgl-for-lua/lvgl.toggle.md): Add a toggle switch using the EdgeTX style.
- [lvgl.triangle](https://luadoc.edgetx.org/lua-api-reference/lvgl-for-lua/lvgl.triangle.md): Display a filled triangle.
- [lvgl.vline](https://luadoc.edgetx.org/lua-api-reference/lvgl-for-lua/lvgl.vline.md): Display a vertical line.
- [Model Functions](https://luadoc.edgetx.org/lua-api-reference/model.md)
- [model.defaultInputs](https://luadoc.edgetx.org/lua-api-reference/model/defaultinputs.md)
- [model.deleteFlightModes](https://luadoc.edgetx.org/lua-api-reference/model/deleteflightmodes.md)
- [model.deleteInput](https://luadoc.edgetx.org/lua-api-reference/model/deleteinput.md)
- [model.deleteInputs](https://luadoc.edgetx.org/lua-api-reference/model/deleteinputs.md)
- [model.deleteMix](https://luadoc.edgetx.org/lua-api-reference/model/deletemix.md)
- [model.deleteMixes](https://luadoc.edgetx.org/lua-api-reference/model/deletemixes.md)
- [model.getCurve](https://luadoc.edgetx.org/lua-api-reference/model/getcurve.md)
- [model.getCustomFunction(function)](https://luadoc.edgetx.org/lua-api-reference/model/getcustomfunction.md)
- [model.getFlightMode(index)](https://luadoc.edgetx.org/lua-api-reference/model/getflightmode.md)
- [model.getGlobalVariable(index, flight\_mode)](https://luadoc.edgetx.org/lua-api-reference/model/getglobalvariable.md)
- [model.getInfo](https://luadoc.edgetx.org/lua-api-reference/model/getinfo.md)
- [model.getInput(input, line)](https://luadoc.edgetx.org/lua-api-reference/model/getinput.md)
- [model.getInputsCount(input)](https://luadoc.edgetx.org/lua-api-reference/model/getinputscount.md)
- [model.getLogicalSwitch(switch)](https://luadoc.edgetx.org/lua-api-reference/model/getlogicalswitch.md)
- [model.getMix(channel, line)](https://luadoc.edgetx.org/lua-api-reference/model/getmix.md)
- [model.getMixesCount(channel)](https://luadoc.edgetx.org/lua-api-reference/model/getmixescount.md)
- [model.getModule(index)](https://luadoc.edgetx.org/lua-api-reference/model/getmodule.md)
- [model.getOutput(index)](https://luadoc.edgetx.org/lua-api-reference/model/getoutput.md)
- [model.getSensor(sensor)](https://luadoc.edgetx.org/lua-api-reference/model/getsensor.md)
- [model.getTimer(timer)](https://luadoc.edgetx.org/lua-api-reference/model/gettimer.md)
- [model.insertInput(input, line, value)](https://luadoc.edgetx.org/lua-api-reference/model/insertinput.md)
- [model.insertMix(channel, line, value)](https://luadoc.edgetx.org/lua-api-reference/model/insertmix.md)
- [model.getSwashRing()](https://luadoc.edgetx.org/lua-api-reference/model/model.getswashring.md)
- [model.setSwashRing(params)](https://luadoc.edgetx.org/lua-api-reference/model/model.setswashring-params.md)
- [model.resetSensor(sensor)](https://luadoc.edgetx.org/lua-api-reference/model/resetsensor.md)
- [model.resetTimer(timer)](https://luadoc.edgetx.org/lua-api-reference/model/resettimer.md)
- [model.setCurve(curve, params)](https://luadoc.edgetx.org/lua-api-reference/model/setcurve.md)
- [model.setCustomFunction(function, value)](https://luadoc.edgetx.org/lua-api-reference/model/setcustomfunction.md)
- [model.setFlightMode(index, params)](https://luadoc.edgetx.org/lua-api-reference/model/setflightmode.md)
- [model.setGlobalVariable(index, flight\_mode, value)](https://luadoc.edgetx.org/lua-api-reference/model/setglobalvariable.md)
- [model.setInfo(value)](https://luadoc.edgetx.org/lua-api-reference/model/setinfo.md)
- [model.setLogicalSwitch(switch, value)](https://luadoc.edgetx.org/lua-api-reference/model/setlogicalswitch.md)
- [model.setModule(index, value)](https://luadoc.edgetx.org/lua-api-reference/model/setmodule.md)
- [model.setOutput(index, value)](https://luadoc.edgetx.org/lua-api-reference/model/setoutput.md)
- [model.setTimer(timer, value)](https://luadoc.edgetx.org/lua-api-reference/model/settimer.md)
- [Bitmap Functions](https://luadoc.edgetx.org/lua-api-reference/bitmap.md)
- [Bitmap.resize(bitmap, width, height)](https://luadoc.edgetx.org/lua-api-reference/bitmap/bitmap.resize.md)
- [Bitmap.toMask(bitmap)](https://luadoc.edgetx.org/lua-api-reference/bitmap/bitmap.tomask.md)
- [Bitmap.getSize(name)](https://luadoc.edgetx.org/lua-api-reference/bitmap/getsize.md)
- [Bitmap.open(name)](https://luadoc.edgetx.org/lua-api-reference/bitmap/open.md)
- [Filesystem](https://luadoc.edgetx.org/lua-api-reference/filesystem.md)
- [chdir(directory)](https://luadoc.edgetx.org/lua-api-reference/filesystem/chdir.md)
- [del(file or directory)](https://luadoc.edgetx.org/lua-api-reference/filesystem/del.md)
- [dir(directory)](https://luadoc.edgetx.org/lua-api-reference/filesystem/dir.md)
- [fstat(path)](https://luadoc.edgetx.org/lua-api-reference/filesystem/fstat.md)
- [Serial Ports](https://luadoc.edgetx.org/lua-api-reference/serial-ports.md)
- [serialGetPower(port\_nr)](https://luadoc.edgetx.org/lua-api-reference/serial-ports/serialgetpower.md)
- [serialRead(\[num\])](https://luadoc.edgetx.org/lua-api-reference/serial-ports/serialread.md)
- [serialSetPower(port\_nr, value)](https://luadoc.edgetx.org/lua-api-reference/serial-ports/serialsetpower.md)
- [serialWrite(str)](https://luadoc.edgetx.org/lua-api-reference/serial-ports/serialwrite.md)
- [setSerialBaudrate(baudrate)](https://luadoc.edgetx.org/lua-api-reference/serial-ports/setserialbaudrate.md)
- [System](https://luadoc.edgetx.org/lua-api-reference/system.md)
- [defaultChannel(stick)](https://luadoc.edgetx.org/lua-api-reference/system/defaultchannel.md)
- [defaultStick(channel)](https://luadoc.edgetx.org/lua-api-reference/system/defaultstick.md)
- [getGeneralSettings()](https://luadoc.edgetx.org/lua-api-reference/system/getgeneralsettings.md)
- [getVersion()](https://luadoc.edgetx.org/lua-api-reference/system/getversion.md)
- [screenshot()](https://luadoc.edgetx.org/lua-api-reference/system/rgb.md)
- [Key Inputs](https://luadoc.edgetx.org/lua-api-reference/key-inputs.md)
- [getRotEncMode()](https://luadoc.edgetx.org/lua-api-reference/key-inputs/getrotencmode.md)
- [getRotEncSpeed()](https://luadoc.edgetx.org/lua-api-reference/key-inputs/getrotencspeed.md)
- [killEvents(key)](https://luadoc.edgetx.org/lua-api-reference/key-inputs/killevents.md)
- [LUA Scripts](https://luadoc.edgetx.org/lua-api-reference/lua-scripts.md)
- [getAvailableMemory()](https://luadoc.edgetx.org/lua-api-reference/lua-scripts/getavailablememory.md)
- [getUsage()](https://luadoc.edgetx.org/lua-api-reference/lua-scripts/getusage.md)
- [loadScript(file \[, mode\], \[,env\])](https://luadoc.edgetx.org/lua-api-reference/lua-scripts/loadscript.md)
- [Time](https://luadoc.edgetx.org/lua-api-reference/time.md)
- [getDateTime()](https://luadoc.edgetx.org/lua-api-reference/time/getdatetime.md)
- [getGlobalTimer()](https://luadoc.edgetx.org/lua-api-reference/time/getglobaltimer.md)
- [getRtcTime()](https://luadoc.edgetx.org/lua-api-reference/time/getrtctime.md)
- [getTime()](https://luadoc.edgetx.org/lua-api-reference/time/gettime.md)
- [resetGlobalTimer(\[type\])](https://luadoc.edgetx.org/lua-api-reference/time/resetglobaltimer.md)
- [Audio-Sound](https://luadoc.edgetx.org/lua-api-reference/audio-sound.md)
- [playDuration(duration \[, hourFormat\])](https://luadoc.edgetx.org/lua-api-reference/audio-sound/playduration.md): Play a time value (text to speech)
- [playFile(name)](https://luadoc.edgetx.org/lua-api-reference/audio-sound/playfile.md): Play a file from the SD card
- [playHaptic(duration, pause \[, flags\])](https://luadoc.edgetx.org/lua-api-reference/audio-sound/playhaptic.md)
- [playNumber(value, unit \[, attributes\])](https://luadoc.edgetx.org/lua-api-reference/audio-sound/playnumber.md): Play a numerical value (text to speech)
- [playTone(frequency, duration, pause \[, flags \[, freqIncr\]\])](https://luadoc.edgetx.org/lua-api-reference/audio-sound/playtone.md): Play a tone
- [flushAudio()](https://luadoc.edgetx.org/lua-api-reference/audio-sound/flushaudio.md)
- [Telemetry](https://luadoc.edgetx.org/lua-api-reference/telemetry.md)
- [getRSSI()](https://luadoc.edgetx.org/lua-api-reference/telemetry/getrssi.md)
- [RF module](https://luadoc.edgetx.org/lua-api-reference/rf-module.md)
- [accessTelemetryPush()](https://luadoc.edgetx.org/lua-api-reference/rf-module/accesstelemetrypush.md)
- [crossfireTelemetryPop()](https://luadoc.edgetx.org/lua-api-reference/rf-module/crossfiretelemetrypop.md)
- [crossfireTelemetryPush()](https://luadoc.edgetx.org/lua-api-reference/rf-module/crossfiretelemetrypush.md)
- [ghostTelemetryPop()](https://luadoc.edgetx.org/lua-api-reference/rf-module/ghosttelemetrypop.md)
- [ghostTelemetryPush()](https://luadoc.edgetx.org/lua-api-reference/rf-module/ghosttelemetrypush.md)
- [sportTelemetryPop()](https://luadoc.edgetx.org/lua-api-reference/rf-module/sporttelemetrypop.md)
- [sportTelemetryPush()](https://luadoc.edgetx.org/lua-api-reference/rf-module/sporttelemetrypush.md)
- [getRAS()](https://luadoc.edgetx.org/lua-api-reference/rf-module/getras.md)
- [multiBuffer(address\[,value\])](https://luadoc.edgetx.org/lua-api-reference/rf-module/multibuffer-address-value.md)
- [GPS](https://luadoc.edgetx.org/lua-api-reference/gps.md)
- [getTxGPS()](https://luadoc.edgetx.org/lua-api-reference/gps/gettxgps.md)
- [Variables](https://luadoc.edgetx.org/lua-api-reference/variables.md)
- [getFieldInfo(source)](https://luadoc.edgetx.org/lua-api-reference/variables/getfieldinfo.md)
- [getFlightMode(mode)](https://luadoc.edgetx.org/lua-api-reference/variables/getflightmode.md)
- [getLogicalSwitchValue(id)](https://luadoc.edgetx.org/lua-api-reference/variables/getlogicalswitchvalue.md)
- [getOutputValue(outputIndex)](https://luadoc.edgetx.org/lua-api-reference/variables/getoutputvalue.md)
- [getShmVar(id)](https://luadoc.edgetx.org/lua-api-reference/variables/getshmvar.md)
- [getSourceIndex(sourceName)](https://luadoc.edgetx.org/lua-api-reference/variables/getsourceindex.md)
- [getSourceName(sourceIndex)](https://luadoc.edgetx.org/lua-api-reference/variables/getsourcename.md)
- [getSourceValue(source)](https://luadoc.edgetx.org/lua-api-reference/variables/getsourcevalue.md)
- [getSwitchIndex(positionName)](https://luadoc.edgetx.org/lua-api-reference/variables/getswitchindex.md)
- [getSwitchName(switchIndex)](https://luadoc.edgetx.org/lua-api-reference/variables/getswitchname.md)
- [getSwitchValue(switchIndex)](https://luadoc.edgetx.org/lua-api-reference/variables/getswitchvalue.md)
- [getValue(source)](https://luadoc.edgetx.org/lua-api-reference/variables/getvalue.md)
- [setShmVar(id, value)](https://luadoc.edgetx.org/lua-api-reference/variables/setshmvar.md)
- [setStickySwitch(id, value)](https://luadoc.edgetx.org/lua-api-reference/variables/setstickyswitch.md)
- [sources(\[first\[, last\]\])](https://luadoc.edgetx.org/lua-api-reference/variables/sources.md)
- [switches(\[first\[, last\]\])](https://luadoc.edgetx.org/lua-api-reference/variables/switches.md)
- [LUA API Programming](https://luadoc.edgetx.org/lua-api-programming.md)
- [Data Exchange with the EdgeTX Model Setup](https://luadoc.edgetx.org/lua-api-programming/data-exchange-with-the-edgetx-model-setup.md): An EdgeTX model has several data components that can be exchanged with Lua scripts. This section gives an overview.
- [Drawing Flags and Colors](https://luadoc.edgetx.org/lua-api-programming/drawing-flags-and-colors.md): This section will give some technical details for radios with a color screen.
- [Init Function Syntax](https://luadoc.edgetx.org/lua-api-programming/init-function-syntax.md)
- [Input Table Syntax](https://luadoc.edgetx.org/lua-api-programming/input-table-syntax.md)
- [Loading Code Modules Dynamically](https://luadoc.edgetx.org/lua-api-programming/loading-code-modules-dynamically.md): Lua makes it easy to load and unload code modules on the fly, to save memory or to provide program extensions.
- [Output Table Syntax](https://luadoc.edgetx.org/lua-api-programming/output-table-syntax.md)
- [Return Statement Syntax](https://luadoc.edgetx.org/lua-api-programming/return-statement-syntax.md)
- [Run Function Syntax](https://luadoc.edgetx.org/lua-api-programming/run-function-syntax.md)
- [Saving Memory](https://luadoc.edgetx.org/lua-api-programming/saving-memory.md): This chapter will show you some ways that large script projects can be fitted into the limited memory of our radios.
- [Using Key and Touch Events](https://luadoc.edgetx.org/lua-api-programming/using-key-and-touch-events.md): This section will discuss how interactive scripts receiving user inputs via key and touch events can be created.
- [Advanced Topics](https://luadoc.edgetx.org/lua-api-programming/advanced-topics.md)
- [Debugging techniques](https://luadoc.edgetx.org/lua-api-programming/advanced-topics/debugging-techniques.md)
- [Lua data sharing across scripts](https://luadoc.edgetx.org/lua-api-programming/advanced-topics/lua-data-sharing-across-scripts.md)
- [Speed/memory optimizaton tricks](https://luadoc.edgetx.org/lua-api-programming/advanced-topics/optimization-tricks.md)
- [Appendixes](https://luadoc.edgetx.org/appendix.md)
- [Fonts](https://luadoc.edgetx.org/appendix/fonts.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://luadoc.edgetx.org/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.
