{"version":1,"pages":[{"id":"-MRzpA5GPvBV5Z8NSSpK","title":"OpenTX 2.1 Lua Reference Guide","pathname":"/opentx-lua-reference-guide","siteSpaceId":"sitesp_YCEn0","description":""},{"id":"-MRzpCkkgCx9iqJ6MbCy","title":"Introduction","pathname":"/opentx-lua-reference-guide/introduction","siteSpaceId":"sitesp_YCEn0","description":""},{"id":"-MRzpCklw-SuYbj-aeSy","title":"Acknowledgments","pathname":"/opentx-lua-reference-guide/introduction/acknowledgments","siteSpaceId":"sitesp_YCEn0","description":"","breadcrumbs":[{"label":"Introduction"}]},{"id":"-MRzpCkmg9Z5EZUTRis_","title":"Getting Started","pathname":"/opentx-lua-reference-guide/introduction/getting_started","siteSpaceId":"sitesp_YCEn0","description":"","breadcrumbs":[{"label":"Introduction"}]},{"id":"-MRzpCknpbfZQjTluDY7","title":"Part I - Script Type Overview","pathname":"/opentx-lua-reference-guide/part_i_-_script_type_overview","siteSpaceId":"sitesp_YCEn0","description":""},{"id":"-MRzpCkooruV-LDceG8f","title":"Mix Scripts","pathname":"/opentx-lua-reference-guide/part_i_-_script_type_overview/mix","siteSpaceId":"sitesp_YCEn0","description":"","breadcrumbs":[{"label":"Part I - Script Type Overview"}]},{"id":"-MRzpCkpQKNZ8rNnJzLn","title":"Telemetry Scripts","pathname":"/opentx-lua-reference-guide/part_i_-_script_type_overview/telemetry","siteSpaceId":"sitesp_YCEn0","description":"","breadcrumbs":[{"label":"Part I - Script Type Overview"}]},{"id":"-MRzpCkqJwefq-7Cbs9r","title":"One-Time Scripts","pathname":"/opentx-lua-reference-guide/part_i_-_script_type_overview/one-time_scripts","siteSpaceId":"sitesp_YCEn0","description":"","breadcrumbs":[{"label":"Part I - Script Type Overview"}]},{"id":"-MRzpCkruQNPVauS5jq7","title":"Wizard Script","pathname":"/opentx-lua-reference-guide/part_i_-_script_type_overview/wizard","siteSpaceId":"sitesp_YCEn0","description":"","breadcrumbs":[{"label":"Part I - Script Type Overview"}]},{"id":"-MRzpCksZTnakRSwWhrB","title":"Function Scripts","pathname":"/opentx-lua-reference-guide/part_i_-_script_type_overview/function_scripts","siteSpaceId":"sitesp_YCEn0","description":"","breadcrumbs":[{"label":"Part I - Script Type Overview"}]},{"id":"-MRzpCktBhs8JKEDNuZt","title":"Part II - OpenTX Lua API Programming Guide","pathname":"/opentx-lua-reference-guide/part_ii_-_opentx_lua_api_programming_guide","siteSpaceId":"sitesp_YCEn0","description":""},{"id":"-MRzpCku0aIG34whjNkr","title":"Input Table Syntax","pathname":"/opentx-lua-reference-guide/part_ii_-_opentx_lua_api_programming_guide/input_table_syntax","siteSpaceId":"sitesp_YCEn0","description":"","breadcrumbs":[{"label":"Part II - OpenTX Lua API Programming Guide"}]},{"id":"-MRzpCkvLM5cFPNwmRAO","title":"Output Table Syntax","pathname":"/opentx-lua-reference-guide/part_ii_-_opentx_lua_api_programming_guide/output_table_syntax","siteSpaceId":"sitesp_YCEn0","description":"","breadcrumbs":[{"label":"Part II - OpenTX Lua API Programming Guide"}]},{"id":"-MRzpCkwpTVvKNn5GkWF","title":"Init Function Syntax","pathname":"/opentx-lua-reference-guide/part_ii_-_opentx_lua_api_programming_guide/init_function_syntax","siteSpaceId":"sitesp_YCEn0","description":"","breadcrumbs":[{"label":"Part II - OpenTX Lua API Programming Guide"}]},{"id":"-MRzpCkxMB00u7VBtGQT","title":"Run Function Syntax","pathname":"/opentx-lua-reference-guide/part_ii_-_opentx_lua_api_programming_guide/run_function_syntax","siteSpaceId":"sitesp_YCEn0","description":"","breadcrumbs":[{"label":"Part II - OpenTX Lua API Programming Guide"}]},{"id":"-MRzpCkyEdu4UG4rRmdV","title":"Return Statement Syntax","pathname":"/opentx-lua-reference-guide/part_ii_-_opentx_lua_api_programming_guide/return_statement_syntax","siteSpaceId":"sitesp_YCEn0","description":"","breadcrumbs":[{"label":"Part II - OpenTX Lua API Programming Guide"}]},{"id":"-MRzpCkzEd8NOsJ6W8lS","title":"Included Lua Libraries","pathname":"/opentx-lua-reference-guide/part_ii_-_opentx_lua_api_programming_guide/included_lua_libraries","siteSpaceId":"sitesp_YCEn0","description":"","breadcrumbs":[{"label":"Part II - OpenTX Lua API Programming Guide"}]},{"id":"-MRzpCl-S101iMPyKs0J","title":"io Library","pathname":"/opentx-lua-reference-guide/part_ii_-_opentx_lua_api_programming_guide/included_lua_libraries/io","siteSpaceId":"sitesp_YCEn0","description":"","breadcrumbs":[{"label":"Part II - OpenTX Lua API Programming Guide"},{"label":"Included Lua Libraries"}]},{"id":"-MRzpCl0YQk1YXZQ0ZRd","title":"io.open()","pathname":"/opentx-lua-reference-guide/part_ii_-_opentx_lua_api_programming_guide/included_lua_libraries/io/io_open","siteSpaceId":"sitesp_YCEn0","description":"","breadcrumbs":[{"label":"Part II - OpenTX Lua API Programming Guide"},{"label":"Included Lua Libraries"},{"label":"io Library"}]},{"id":"-MRzpCl1gFCbAp59ZyZT","title":"io.close()","pathname":"/opentx-lua-reference-guide/part_ii_-_opentx_lua_api_programming_guide/included_lua_libraries/io/io_close","siteSpaceId":"sitesp_YCEn0","description":"","breadcrumbs":[{"label":"Part II - OpenTX Lua API Programming Guide"},{"label":"Included Lua Libraries"},{"label":"io Library"}]},{"id":"-MRzpCl2GEmi0Ypkgvak","title":"io.read()","pathname":"/opentx-lua-reference-guide/part_ii_-_opentx_lua_api_programming_guide/included_lua_libraries/io/io_read","siteSpaceId":"sitesp_YCEn0","description":"","breadcrumbs":[{"label":"Part II - OpenTX Lua API Programming Guide"},{"label":"Included Lua Libraries"},{"label":"io Library"}]},{"id":"-MRzpCl3alJhBAlopBw2","title":"io.write()","pathname":"/opentx-lua-reference-guide/part_ii_-_opentx_lua_api_programming_guide/included_lua_libraries/io/io_write","siteSpaceId":"sitesp_YCEn0","description":"","breadcrumbs":[{"label":"Part II - OpenTX Lua API Programming Guide"},{"label":"Included Lua Libraries"},{"label":"io Library"}]},{"id":"-MRzpCl4oq0_2zIKftNX","title":"io.seek()","pathname":"/opentx-lua-reference-guide/part_ii_-_opentx_lua_api_programming_guide/included_lua_libraries/io/io_seek","siteSpaceId":"sitesp_YCEn0","description":"","breadcrumbs":[{"label":"Part II - OpenTX Lua API Programming Guide"},{"label":"Included Lua Libraries"},{"label":"io Library"}]},{"id":"-MRzpCl5VGm4qHeMkWTO","title":"Part III - OpenTX Lua API Reference","pathname":"/opentx-lua-reference-guide/part_iii_-_opentx_lua_api_reference","siteSpaceId":"sitesp_YCEn0","description":""},{"id":"-MRzpCl6pmX9nwV2eGwH","title":"Constants","pathname":"/opentx-lua-reference-guide/part_iii_-_opentx_lua_api_reference/constants","siteSpaceId":"sitesp_YCEn0","description":"","breadcrumbs":[{"label":"Part III - OpenTX Lua API Reference"}]},{"id":"-MRzpCl7r41ihNL3Z7Gr","title":"Key Event Constants","pathname":"/opentx-lua-reference-guide/part_iii_-_opentx_lua_api_reference/constants/key_events","siteSpaceId":"sitesp_YCEn0","description":"","breadcrumbs":[{"label":"Part III - OpenTX Lua API Reference"},{"label":"Constants"}]},{"id":"-MRzpCl8-7Br7i_ao2L7","title":"General Functions","pathname":"/opentx-lua-reference-guide/part_iii_-_opentx_lua_api_reference/general_functions","siteSpaceId":"sitesp_YCEn0","description":"","breadcrumbs":[{"label":"Part III - OpenTX Lua API Reference"}]},{"id":"-MRzpCl9OZKl0hLekn0Y","title":"GREY()","pathname":"/opentx-lua-reference-guide/part_iii_-_opentx_lua_api_reference/general_functions/grey","siteSpaceId":"sitesp_YCEn0","description":"","breadcrumbs":[{"label":"Part III - OpenTX Lua API Reference"},{"label":"General Functions"}]},{"id":"-MRzpClAuevj9_IPigpW","title":"defaultChannel(stick)","pathname":"/opentx-lua-reference-guide/part_iii_-_opentx_lua_api_reference/general_functions/defaultchannel","siteSpaceId":"sitesp_YCEn0","description":"","breadcrumbs":[{"label":"Part III - OpenTX Lua API Reference"},{"label":"General Functions"}]},{"id":"-MRzpClBEbUw6B24hw8r","title":"defaultStick(channel)","pathname":"/opentx-lua-reference-guide/part_iii_-_opentx_lua_api_reference/general_functions/defaultstick","siteSpaceId":"sitesp_YCEn0","description":"","breadcrumbs":[{"label":"Part III - OpenTX Lua API Reference"},{"label":"General Functions"}]},{"id":"-MRzpClCrrW5tUZQhZtV","title":"getDateTime()","pathname":"/opentx-lua-reference-guide/part_iii_-_opentx_lua_api_reference/general_functions/getdatetime","siteSpaceId":"sitesp_YCEn0","description":"","breadcrumbs":[{"label":"Part III - OpenTX Lua API Reference"},{"label":"General Functions"}]},{"id":"-MRzpClDvcvf0LseOPUL","title":"getFieldInfo(name)","pathname":"/opentx-lua-reference-guide/part_iii_-_opentx_lua_api_reference/general_functions/getfieldinfo","siteSpaceId":"sitesp_YCEn0","description":"","breadcrumbs":[{"label":"Part III - OpenTX Lua API Reference"},{"label":"General Functions"}]},{"id":"-MRzpClEmXU_1A_3vMgS","title":"getFlightMode(mode)","pathname":"/opentx-lua-reference-guide/part_iii_-_opentx_lua_api_reference/general_functions/getflightmode","siteSpaceId":"sitesp_YCEn0","description":"","breadcrumbs":[{"label":"Part III - OpenTX Lua API Reference"},{"label":"General Functions"}]},{"id":"-MRzpClFqhPQehqf88Si","title":"getGeneralSettings()","pathname":"/opentx-lua-reference-guide/part_iii_-_opentx_lua_api_reference/general_functions/getgeneralsettings","siteSpaceId":"sitesp_YCEn0","description":"","breadcrumbs":[{"label":"Part III - OpenTX Lua API Reference"},{"label":"General Functions"}]},{"id":"-MRzpClGXlta8j13iMO-","title":"getTime()","pathname":"/opentx-lua-reference-guide/part_iii_-_opentx_lua_api_reference/general_functions/gettime","siteSpaceId":"sitesp_YCEn0","description":"","breadcrumbs":[{"label":"Part III - OpenTX Lua API Reference"},{"label":"General Functions"}]},{"id":"-MRzpClH2svGe5xw8GGV","title":"getValue(source)","pathname":"/opentx-lua-reference-guide/part_iii_-_opentx_lua_api_reference/general_functions/getvalue","siteSpaceId":"sitesp_YCEn0","description":"","breadcrumbs":[{"label":"Part III - OpenTX Lua API Reference"},{"label":"General Functions"}]},{"id":"-MRzpClIOeq8Zlu85-NV","title":"getVersion()","pathname":"/opentx-lua-reference-guide/part_iii_-_opentx_lua_api_reference/general_functions/getversion","siteSpaceId":"sitesp_YCEn0","description":"","breadcrumbs":[{"label":"Part III - OpenTX Lua API Reference"},{"label":"General Functions"}]},{"id":"-MRzpClJhAjRQyHZ_ku1","title":"killEvents(key)","pathname":"/opentx-lua-reference-guide/part_iii_-_opentx_lua_api_reference/general_functions/killevents","siteSpaceId":"sitesp_YCEn0","description":"","breadcrumbs":[{"label":"Part III - OpenTX Lua API Reference"},{"label":"General Functions"}]},{"id":"-MRzpClKYXXqFxZcOQBc","title":"playDuration(duration [, hourFormat])","pathname":"/opentx-lua-reference-guide/part_iii_-_opentx_lua_api_reference/general_functions/playduration","siteSpaceId":"sitesp_YCEn0","description":"","breadcrumbs":[{"label":"Part III - OpenTX Lua API Reference"},{"label":"General Functions"}]},{"id":"-MRzpClLwuj-0oMoT_Y_","title":"playFile(name)","pathname":"/opentx-lua-reference-guide/part_iii_-_opentx_lua_api_reference/general_functions/playfile","siteSpaceId":"sitesp_YCEn0","description":"","breadcrumbs":[{"label":"Part III - OpenTX Lua API Reference"},{"label":"General Functions"}]},{"id":"-MRzpClM_PuoP1Qjn29d","title":"playNumber(value, unit [, attributes])","pathname":"/opentx-lua-reference-guide/part_iii_-_opentx_lua_api_reference/general_functions/playnumber","siteSpaceId":"sitesp_YCEn0","description":"","breadcrumbs":[{"label":"Part III - OpenTX Lua API Reference"},{"label":"General Functions"}]},{"id":"-MRzpClNFhEbwRGOr9ul","title":"playTone(frequency, duration, pause [, flags [, freqIncr]])","pathname":"/opentx-lua-reference-guide/part_iii_-_opentx_lua_api_reference/general_functions/playtone","siteSpaceId":"sitesp_YCEn0","description":"","breadcrumbs":[{"label":"Part III - OpenTX Lua API Reference"},{"label":"General Functions"}]},{"id":"-MRzpClOstfIC0NcSegg","title":"popupInput(title, event, input, min, max)","pathname":"/opentx-lua-reference-guide/part_iii_-_opentx_lua_api_reference/general_functions/popupinput","siteSpaceId":"sitesp_YCEn0","description":"","breadcrumbs":[{"label":"Part III - OpenTX Lua API Reference"},{"label":"General Functions"}]},{"id":"-MRzpClPHiivPPR1Jlk7","title":"Model Functions","pathname":"/opentx-lua-reference-guide/part_iii_-_opentx_lua_api_reference/model_functions","siteSpaceId":"sitesp_YCEn0","description":"","breadcrumbs":[{"label":"Part III - OpenTX Lua API Reference"}]},{"id":"-MRzpClQ0u3xjvQE3jzg","title":"model.defaultInputs()","pathname":"/opentx-lua-reference-guide/part_iii_-_opentx_lua_api_reference/model_functions/defaultinputs","siteSpaceId":"sitesp_YCEn0","description":"","breadcrumbs":[{"label":"Part III - OpenTX Lua API Reference"},{"label":"Model Functions"}]},{"id":"-MRzpClRdz2Grvw7USDr","title":"model.deleteInput(input, line)","pathname":"/opentx-lua-reference-guide/part_iii_-_opentx_lua_api_reference/model_functions/deleteinput","siteSpaceId":"sitesp_YCEn0","description":"","breadcrumbs":[{"label":"Part III - OpenTX Lua API Reference"},{"label":"Model Functions"}]},{"id":"-MRzpClS6cFV0rniw1Nq","title":"model.deleteInputs()","pathname":"/opentx-lua-reference-guide/part_iii_-_opentx_lua_api_reference/model_functions/deleteinputs","siteSpaceId":"sitesp_YCEn0","description":"","breadcrumbs":[{"label":"Part III - OpenTX Lua API Reference"},{"label":"Model Functions"}]},{"id":"-MRzpClTAqYjygfx4-_A","title":"model.deleteMix(channel, line)","pathname":"/opentx-lua-reference-guide/part_iii_-_opentx_lua_api_reference/model_functions/deletemix","siteSpaceId":"sitesp_YCEn0","description":"","breadcrumbs":[{"label":"Part III - OpenTX Lua API Reference"},{"label":"Model Functions"}]},{"id":"-MRzpClUKL3emEguhHZX","title":"model.deleteMixes()","pathname":"/opentx-lua-reference-guide/part_iii_-_opentx_lua_api_reference/model_functions/deletemixes","siteSpaceId":"sitesp_YCEn0","description":"","breadcrumbs":[{"label":"Part III - OpenTX Lua API Reference"},{"label":"Model Functions"}]},{"id":"-MRzpClVAq2UHscwFTmP","title":"model.getCurve(curve)","pathname":"/opentx-lua-reference-guide/part_iii_-_opentx_lua_api_reference/model_functions/getcurve","siteSpaceId":"sitesp_YCEn0","description":"","breadcrumbs":[{"label":"Part III - OpenTX Lua API Reference"},{"label":"Model Functions"}]},{"id":"-MRzpClWpNfCZOJ9tJ3c","title":"model.getCustomFunction(function)","pathname":"/opentx-lua-reference-guide/part_iii_-_opentx_lua_api_reference/model_functions/getcustomfunction","siteSpaceId":"sitesp_YCEn0","description":"","breadcrumbs":[{"label":"Part III - OpenTX Lua API Reference"},{"label":"Model Functions"}]},{"id":"-MRzpClXVI-SyDqiA1uS","title":"model.getGlobalVariable(index [, flight_mode])","pathname":"/opentx-lua-reference-guide/part_iii_-_opentx_lua_api_reference/model_functions/getglobalvariable","siteSpaceId":"sitesp_YCEn0","description":"","breadcrumbs":[{"label":"Part III - OpenTX Lua API Reference"},{"label":"Model Functions"}]},{"id":"-MRzpClYyNJC_yPLWxZm","title":"model.getInfo()","pathname":"/opentx-lua-reference-guide/part_iii_-_opentx_lua_api_reference/model_functions/getinfo","siteSpaceId":"sitesp_YCEn0","description":"","breadcrumbs":[{"label":"Part III - OpenTX Lua API Reference"},{"label":"Model Functions"}]},{"id":"-MRzpClZ0BOVvh0jfuW2","title":"model.getInput(input, line)","pathname":"/opentx-lua-reference-guide/part_iii_-_opentx_lua_api_reference/model_functions/getinput","siteSpaceId":"sitesp_YCEn0","description":"","breadcrumbs":[{"label":"Part III - OpenTX Lua API Reference"},{"label":"Model Functions"}]},{"id":"-MRzpCl_YE7l6Cq5IXJM","title":"model.getInputsCount(input)","pathname":"/opentx-lua-reference-guide/part_iii_-_opentx_lua_api_reference/model_functions/getinputscount","siteSpaceId":"sitesp_YCEn0","description":"","breadcrumbs":[{"label":"Part III - OpenTX Lua API Reference"},{"label":"Model Functions"}]},{"id":"-MRzpClaa2RkCjtf-Gxy","title":"model.getLogicalSwitch(switch)","pathname":"/opentx-lua-reference-guide/part_iii_-_opentx_lua_api_reference/model_functions/getlogicalswitch","siteSpaceId":"sitesp_YCEn0","description":"","breadcrumbs":[{"label":"Part III - OpenTX Lua API Reference"},{"label":"Model Functions"}]},{"id":"-MRzpClbbdncPwFTBjBL","title":"model.getMix(channel, line)","pathname":"/opentx-lua-reference-guide/part_iii_-_opentx_lua_api_reference/model_functions/getmix","siteSpaceId":"sitesp_YCEn0","description":"","breadcrumbs":[{"label":"Part III - OpenTX Lua API Reference"},{"label":"Model Functions"}]},{"id":"-MRzpClcyIdE2zSU44CT","title":"model.getMixesCount(channel)","pathname":"/opentx-lua-reference-guide/part_iii_-_opentx_lua_api_reference/model_functions/getmixescount","siteSpaceId":"sitesp_YCEn0","description":"","breadcrumbs":[{"label":"Part III - OpenTX Lua API Reference"},{"label":"Model Functions"}]},{"id":"-MRzpCldWSFqP314spT0","title":"model.getModule(index)","pathname":"/opentx-lua-reference-guide/part_iii_-_opentx_lua_api_reference/model_functions/getmodule","siteSpaceId":"sitesp_YCEn0","description":"","breadcrumbs":[{"label":"Part III - OpenTX Lua API Reference"},{"label":"Model Functions"}]},{"id":"-MRzpCleBVfAgJknM93Y","title":"model.getOutput(index)","pathname":"/opentx-lua-reference-guide/part_iii_-_opentx_lua_api_reference/model_functions/getoutput","siteSpaceId":"sitesp_YCEn0","description":"","breadcrumbs":[{"label":"Part III - OpenTX Lua API Reference"},{"label":"Model Functions"}]},{"id":"-MRzpClfd8xWFwagGAIR","title":"model.getTimer(timer)","pathname":"/opentx-lua-reference-guide/part_iii_-_opentx_lua_api_reference/model_functions/gettimer","siteSpaceId":"sitesp_YCEn0","description":"","breadcrumbs":[{"label":"Part III - OpenTX Lua API Reference"},{"label":"Model Functions"}]},{"id":"-MRzpClg9aFDr2i1VIz1","title":"model.insertInput(input, line, value)","pathname":"/opentx-lua-reference-guide/part_iii_-_opentx_lua_api_reference/model_functions/insertinput","siteSpaceId":"sitesp_YCEn0","description":"","breadcrumbs":[{"label":"Part III - OpenTX Lua API Reference"},{"label":"Model Functions"}]},{"id":"-MRzpClhWzc1b5cbuo9u","title":"model.insertMix(channel, line, value)","pathname":"/opentx-lua-reference-guide/part_iii_-_opentx_lua_api_reference/model_functions/insertmix","siteSpaceId":"sitesp_YCEn0","description":"","breadcrumbs":[{"label":"Part III - OpenTX Lua API Reference"},{"label":"Model Functions"}]},{"id":"-MRzpCli2s2MdjavleYT","title":"model.resetTimer(timer)","pathname":"/opentx-lua-reference-guide/part_iii_-_opentx_lua_api_reference/model_functions/resettimer","siteSpaceId":"sitesp_YCEn0","description":"","breadcrumbs":[{"label":"Part III - OpenTX Lua API Reference"},{"label":"Model Functions"}]},{"id":"-MRzpCljzF-CIakw2gdv","title":"model.setCustomFunction(function, value)","pathname":"/opentx-lua-reference-guide/part_iii_-_opentx_lua_api_reference/model_functions/setcustomfunction","siteSpaceId":"sitesp_YCEn0","description":"","breadcrumbs":[{"label":"Part III - OpenTX Lua API Reference"},{"label":"Model Functions"}]},{"id":"-MRzpClkPlRlZ74UgTd9","title":"model.setGlobalVariable(index, flight_mode, value)","pathname":"/opentx-lua-reference-guide/part_iii_-_opentx_lua_api_reference/model_functions/setglobalvariable","siteSpaceId":"sitesp_YCEn0","description":"","breadcrumbs":[{"label":"Part III - OpenTX Lua API Reference"},{"label":"Model Functions"}]},{"id":"-MRzpCll6O_y2ZCxTrp5","title":"model.setInfo(value)","pathname":"/opentx-lua-reference-guide/part_iii_-_opentx_lua_api_reference/model_functions/setinfo","siteSpaceId":"sitesp_YCEn0","description":"","breadcrumbs":[{"label":"Part III - OpenTX Lua API Reference"},{"label":"Model Functions"}]},{"id":"-MRzpClmZOcQtQDdoj7d","title":"model.setLogicalSwitch(switch, value)","pathname":"/opentx-lua-reference-guide/part_iii_-_opentx_lua_api_reference/model_functions/setlogicalswitch","siteSpaceId":"sitesp_YCEn0","description":"","breadcrumbs":[{"label":"Part III - OpenTX Lua API Reference"},{"label":"Model Functions"}]},{"id":"-MRzpClnFzj9radsQ7yN","title":"model.setModule(index, value)","pathname":"/opentx-lua-reference-guide/part_iii_-_opentx_lua_api_reference/model_functions/setmodule","siteSpaceId":"sitesp_YCEn0","description":"","breadcrumbs":[{"label":"Part III - OpenTX Lua API Reference"},{"label":"Model Functions"}]},{"id":"-MRzpClosDOEs2ocxasT","title":"model.setOutput(index, value)","pathname":"/opentx-lua-reference-guide/part_iii_-_opentx_lua_api_reference/model_functions/setoutput","siteSpaceId":"sitesp_YCEn0","description":"","breadcrumbs":[{"label":"Part III - OpenTX Lua API Reference"},{"label":"Model Functions"}]},{"id":"-MRzpClp_Y49BOti5d2g","title":"model.setTimer(timer, value)","pathname":"/opentx-lua-reference-guide/part_iii_-_opentx_lua_api_reference/model_functions/settimer","siteSpaceId":"sitesp_YCEn0","description":"","breadcrumbs":[{"label":"Part III - OpenTX Lua API Reference"},{"label":"Model Functions"}]},{"id":"-MRzpClqABXy8wS-kBpC","title":"Lcd Functions","pathname":"/opentx-lua-reference-guide/part_iii_-_opentx_lua_api_reference/lcd_functions","siteSpaceId":"sitesp_YCEn0","description":"","breadcrumbs":[{"label":"Part III - OpenTX Lua API Reference"}]},{"id":"-MRzpClr9pAbHyCTEQUt","title":"Lcd Functions Overview","pathname":"/opentx-lua-reference-guide/part_iii_-_opentx_lua_api_reference/lcd_functions/lcd_functions-overview","siteSpaceId":"sitesp_YCEn0","description":"","breadcrumbs":[{"label":"Part III - OpenTX Lua API Reference"},{"label":"Lcd Functions"}]},{"id":"-MRzpClsN69-kxdz1NSG","title":"lcd.clear()","pathname":"/opentx-lua-reference-guide/part_iii_-_opentx_lua_api_reference/lcd_functions/clear","siteSpaceId":"sitesp_YCEn0","description":"","breadcrumbs":[{"label":"Part III - OpenTX Lua API Reference"},{"label":"Lcd Functions"}]},{"id":"-MRzpCltUMdIjy5HMdFa","title":"lcd.drawChannel(x, y, source, flags)","pathname":"/opentx-lua-reference-guide/part_iii_-_opentx_lua_api_reference/lcd_functions/drawchannel","siteSpaceId":"sitesp_YCEn0","description":"","breadcrumbs":[{"label":"Part III - OpenTX Lua API Reference"},{"label":"Lcd Functions"}]},{"id":"-MRzpCluea518BEeAwWW","title":"lcd.drawCombobox(x, y, w, list, idx [, flags])","pathname":"/opentx-lua-reference-guide/part_iii_-_opentx_lua_api_reference/lcd_functions/drawcombobox","siteSpaceId":"sitesp_YCEn0","description":"","breadcrumbs":[{"label":"Part III - OpenTX Lua API Reference"},{"label":"Lcd Functions"}]},{"id":"-MRzpClv1pEGyO8FYC_D","title":"lcd.drawFilledRectangle(x, y, w, h [, flags])","pathname":"/opentx-lua-reference-guide/part_iii_-_opentx_lua_api_reference/lcd_functions/drawfilledrectangle","siteSpaceId":"sitesp_YCEn0","description":"","breadcrumbs":[{"label":"Part III - OpenTX Lua API Reference"},{"label":"Lcd Functions"}]},{"id":"-MRzpClwsVF5MgmieUa8","title":"lcd.drawGauge(x, y, w, h, fill, maxfill)","pathname":"/opentx-lua-reference-guide/part_iii_-_opentx_lua_api_reference/lcd_functions/drawgauge","siteSpaceId":"sitesp_YCEn0","description":"","breadcrumbs":[{"label":"Part III - OpenTX Lua API Reference"},{"label":"Lcd Functions"}]},{"id":"-MRzpClxxM-cwidjKxvL","title":"lcd.drawLine(x1, y1, x2, y2, pattern, flags)","pathname":"/opentx-lua-reference-guide/part_iii_-_opentx_lua_api_reference/lcd_functions/drawline","siteSpaceId":"sitesp_YCEn0","description":"","breadcrumbs":[{"label":"Part III - OpenTX Lua API Reference"},{"label":"Lcd Functions"}]},{"id":"-MRzpClyP6kGFTieZopX","title":"lcd.drawNumber(x, y, value [, flags])","pathname":"/opentx-lua-reference-guide/part_iii_-_opentx_lua_api_reference/lcd_functions/drawnumber","siteSpaceId":"sitesp_YCEn0","description":"","breadcrumbs":[{"label":"Part III - OpenTX Lua API Reference"},{"label":"Lcd Functions"}]},{"id":"-MRzpClzQJOwxzXDkn8V","title":"lcd.drawPixmap(x, y, name)","pathname":"/opentx-lua-reference-guide/part_iii_-_opentx_lua_api_reference/lcd_functions/drawpixmap","siteSpaceId":"sitesp_YCEn0","description":"","breadcrumbs":[{"label":"Part III - OpenTX Lua API Reference"},{"label":"Lcd Functions"}]},{"id":"-MRzpCm-5hsFd1oFFaNu","title":"lcd.drawPoint(x, y)","pathname":"/opentx-lua-reference-guide/part_iii_-_opentx_lua_api_reference/lcd_functions/drawpoint","siteSpaceId":"sitesp_YCEn0","description":"","breadcrumbs":[{"label":"Part III - OpenTX Lua API Reference"},{"label":"Lcd Functions"}]},{"id":"-MRzpCm0LJCjvNwwFHJt","title":"lcd.drawRectangle(x, y, w, h [, flags])","pathname":"/opentx-lua-reference-guide/part_iii_-_opentx_lua_api_reference/lcd_functions/drawrectangle","siteSpaceId":"sitesp_YCEn0","description":"","breadcrumbs":[{"label":"Part III - OpenTX Lua API Reference"},{"label":"Lcd Functions"}]},{"id":"-MRzpCm1qEn7ir-EghMK","title":"lcd.drawScreenTitle(title, page, pages)","pathname":"/opentx-lua-reference-guide/part_iii_-_opentx_lua_api_reference/lcd_functions/drawscreentitle","siteSpaceId":"sitesp_YCEn0","description":"","breadcrumbs":[{"label":"Part III - OpenTX Lua API Reference"},{"label":"Lcd Functions"}]},{"id":"-MRzpCm2W8NFWYiV1vRc","title":"lcd.drawSource(x, y, source [, flags])","pathname":"/opentx-lua-reference-guide/part_iii_-_opentx_lua_api_reference/lcd_functions/drawsource","siteSpaceId":"sitesp_YCEn0","description":"","breadcrumbs":[{"label":"Part III - OpenTX Lua API Reference"},{"label":"Lcd Functions"}]},{"id":"-MRzpCm3zOafZef0-9fo","title":"lcd.drawSwitch(x, y, switch, flags)","pathname":"/opentx-lua-reference-guide/part_iii_-_opentx_lua_api_reference/lcd_functions/drawswitch","siteSpaceId":"sitesp_YCEn0","description":"","breadcrumbs":[{"label":"Part III - OpenTX Lua API Reference"},{"label":"Lcd Functions"}]},{"id":"-MRzpCm4YvOoGx_nYTLE","title":"lcd.drawText(x, y, text [, flags])","pathname":"/opentx-lua-reference-guide/part_iii_-_opentx_lua_api_reference/lcd_functions/drawtext","siteSpaceId":"sitesp_YCEn0","description":"","breadcrumbs":[{"label":"Part III - OpenTX Lua API Reference"},{"label":"Lcd Functions"}]},{"id":"-MRzpCm5ap9IfNiQjek1","title":"lcd.drawTimer(x, y, value [, flags])","pathname":"/opentx-lua-reference-guide/part_iii_-_opentx_lua_api_reference/lcd_functions/drawtimer","siteSpaceId":"sitesp_YCEn0","description":"","breadcrumbs":[{"label":"Part III - OpenTX Lua API Reference"},{"label":"Lcd Functions"}]},{"id":"-MRzpCm6pcoIXVfWVhJ9","title":"lcd.getLastPos()","pathname":"/opentx-lua-reference-guide/part_iii_-_opentx_lua_api_reference/lcd_functions/getlastpos","siteSpaceId":"sitesp_YCEn0","description":"","breadcrumbs":[{"label":"Part III - OpenTX Lua API Reference"},{"label":"Lcd Functions"}]},{"id":"-MRzpCm7PvOApRTcUT4i","title":"lcd.lock()","pathname":"/opentx-lua-reference-guide/part_iii_-_opentx_lua_api_reference/lcd_functions/lock","siteSpaceId":"sitesp_YCEn0","description":"","breadcrumbs":[{"label":"Part III - OpenTX Lua API Reference"},{"label":"Lcd Functions"}]},{"id":"-MRzpCm85L3_jfgMTzoE","title":"Part IV - Converting OpenTX 2.0 Scripts","pathname":"/opentx-lua-reference-guide/part_iv_-_converting_opentx_20_scripts","siteSpaceId":"sitesp_YCEn0","description":""},{"id":"-MRzpCm9EMwnNj6DLwrc","title":"General Issues","pathname":"/opentx-lua-reference-guide/part_iv_-_converting_opentx_20_scripts/known_issues","siteSpaceId":"sitesp_YCEn0","description":"","breadcrumbs":[{"label":"Part IV - Converting OpenTX 2.0 Scripts"}]},{"id":"-MRzpCmA6GERKTUgadOR","title":"Handling GPS Sensor data","pathname":"/opentx-lua-reference-guide/part_iv_-_converting_opentx_20_scripts/handling_gps_sensor_data","siteSpaceId":"sitesp_YCEn0","description":"","breadcrumbs":[{"label":"Part IV - Converting OpenTX 2.0 Scripts"}]},{"id":"-MRzpCmBl_9kYLqz_M1g","title":"Handling Lipo Sensor Data","pathname":"/opentx-lua-reference-guide/part_iv_-_converting_opentx_20_scripts/handling_lipo_sensor_data","siteSpaceId":"sitesp_YCEn0","description":"","breadcrumbs":[{"label":"Part IV - Converting OpenTX 2.0 Scripts"}]},{"id":"-MRzpCmC9YaEtG_01JFZ","title":"Part V - Advanced Topics","pathname":"/opentx-lua-reference-guide/part_v_-_advanced_topics","siteSpaceId":"sitesp_YCEn0","description":""},{"id":"-MRzpCmD_ygrQLhCo20Y","title":"Lua data sharing across scripts","pathname":"/opentx-lua-reference-guide/part_v_-_advanced_topics/lua_data_sharing_across_scripts","siteSpaceId":"sitesp_YCEn0","description":"","breadcrumbs":[{"label":"Part V - Advanced Topics"}]},{"id":"-MRzpCmEVC-l8gGtm954","title":"Debugging techniques","pathname":"/opentx-lua-reference-guide/part_v_-_advanced_topics/debugging_techniques","siteSpaceId":"sitesp_YCEn0","description":"","breadcrumbs":[{"label":"Part V - Advanced Topics"}]}]}