Page 1 of 1

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

Posted: Sun Dec 18, 2022 11:49 am
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

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

Posted: Wed Dec 21, 2022 12:38 pm
by bob195558
What do you have for a Radio ?
Changing to erskyTx (was ersky9x) firmware will allow for more switches to be added.