Skip to content

system

since 1.1.0

Functions

Function Description Since
getLocale() Return the current locale. 1.1.0
getAudioVoice() Return the current audio voice. 1.5.7
getVersion() Return Ethos version. 1.1.0
getMemoryUsage() Return Ethos Memory Usage. 1.1.0
getInstructionsUsage() Return the percentage of Lua instructions already used in the current script execution cycle. 26.1.3
getStickMode() Return the stick mode. 1.1.0
getSources() Return the list of sources within a category. 26.1.0
getSource() Return a Source. 1.1.0
playFile() Play an audio file. 1.1.0
playNumber() Play a number using the current locale. 1.1.0
playTone() Play a tone. 1.1.0
playHaptic() Play haptic vibration. 1.1.0
killEvents() Kill key events (i.e. after a LONG PRESS event, a KEY RELEASE event may be skipped) 1.1.0
listFiles() List files in a directory. 1.5.0
registerLayout() Register a Lua Layout. 1.5.8
registerTheme() Register a Lua Theme. 26.1.0
registerWidget() Register a Lua Widget. 1.1.0
registerSystemTool() Register a Lua System Tool. 1.1.0
registerMultimoduleProtocol() Register a Multimodule Protocol. 1.3.0
isSensorDiscoverActive() Return if the sensor discover is active. 1.6.4
registerGhostModule() Register the Ghost Module. 1.3.0
registerElrsModule() Register the ELRS Module. 1.3.1
registerMlrsModule() Register the mLRS Module. 26.1.0
registerCrossfireModule() Register the TBS Crossfire Module. 1.3.1
registerGlasses() Register the ActiveLook glasses support (shows the Model / Glasses page) 26.1.3
registerSource() Register a Lua Source. 1.1.0
registerSensor() Register an S.Port sensor definition, so that it gets recognized (name, unit, decimals, protocol min/max) when the sensors Discover finds an appId in this range, instead of falling back to a generic unnamed sensor. 26.1.3
registerTask() Register a Lua Task. 1.5.0
exit() Exit the current script. 1.1.0
emergency() Launch the Emergency Mode (EM) - for testing purposes only. 1.5.8
startLatencyTest() Launch the Latency test on one channel - for testing purposes only. 26.1.0
getLatencyTestResult() Get the result of the Latency test - for testing purposes only. 26.1.0
resetBacklightTimeout() Reset the backlight timeout. 1.1.0
voltageRange() Return the Radio voltage range. 1.5.16
compile() Compile the lua script into luac. 1.5.3
openPage() Open a page. 26.1.0