Skip to content

Latest commit

 

History

History
24 lines (18 loc) · 479 Bytes

getversion.md

File metadata and controls

24 lines (18 loc) · 479 Bytes

getVersion()

#####Overview Returns the OpenTX version number as a Lua string

  • Parameters: none
  • Returns: version number (as a Lua string)
  • Status: current Introduced in 2.1

#####Example telemetry script

local function run(e)
  lcd.clear()
  lcd.drawText(1,1,"getversion() example",0)
  lcd.drawText(1,11,"Result: ", 0)
  lcd.drawText(lcd.getLastPos()+2,11,getVersion(),0)
end

return{run=run}

#####Example output getVersion() example output