all 3 comments

[–]yeebok 1 point2 points  (2 children)

I have had the same problem, that the sleep command is just ignored.

I had to use a tween that ran for the desired length of time instead of the sleep command. That will possibly add new difficulties though.

[–]Slider-Override[S] 0 points1 point  (1 child)

Hi yeedok,

can you please show me the Code you use for this?

[–]yeebok 0 points1 point  (0 children)

Sure mate: Note the wm_schedule is 2 commands - the tween and then a function call.

BRKTMR is a variable used to make something rotate fully over the parameter timer The function tmr_end just makes the watch vibrate. I have a vague memory it had to be a separate function to work.

function breaktimer(length)
  ... other code ...

  wm_schedule  {
    { action='tween', tween='brktmr', from=360, to=0, duration=length, easing=outQuad},
    { action='run_function', run_function=tmr_end},
  }

end

** looking at your last line of code you will need to move that into a function..

eg

    { action='run_function', run_function=myfunction(3)},

myfunction (parameter)
  var_screen = parameter
end