Start/stop/reset built-in timers with Lua script

openTx has introduced a range of new features, ideas and bling. It is fast becoming the firmware of choice for many users. openTx will run on ALL current hardware platforms, including the gruvin9x and sky9x boards. Work has already started to support the new FrSky X9D radio!
Post Reply
Kriz
Posts: 5
Joined: Wed Nov 23, 2022 1:17 pm
Country: -

Start/stop/reset built-in timers with Lua script

Post by Kriz »

Hi together,

is there a way to start/stop/reset the built-in timers from a (telemetry) Lua script? I do not have any buttons left to do so so I want to use Enter and Exit short-press within the telemetry screen, catched with key event constants, to start-stop (Exit button) and reset (Enter button) Timer 1:

if event == EVT_EXIT_BREAK then
-- Start/stop timer
-- HOW DO I START/STOP TIMER 1?
end
if event == EVT_ENTER_BREAK then
-- Reset timer
-- HOW DO I RESET TIMER 1?
end

Is that possible? I couldn't find anything.

Thanks,
Kriz

User avatar
bob195558
Posts: 2377
Joined: Sun Dec 16, 2012 7:24 pm
Country: United States
Location: New England, Vermont
Contact:

Re: Start/stop/reset built-in timers with Lua script

Post by bob195558 »

What do you have for a Radio ?
Changing to erskyTx (was ersky9x) firmware will allow for more switches to be added.
Er9x on 9x radio, with Smartieparts Programmer and TelemetrEZ Board.
ErSky9x on Taranis, Sky9x, 9Xtreme radios.
3D-Printing: (https://openrcforums.com/forum/viewforum.php?f=129).
Post Reply

Return to “openTx”