menu.runMenuSreenSaver


DESCRIPTION
It works like menu.runMenu(), but if no button is press or the rotary is not moved for few seconds, it calls a screenSaverBegin function, and then it loops in a screenSaverLoop function.

When a button or rotary changes value, it calls screenSaverEnd function to end the screen saver mode.



SYNTAX
menu.runMenuScreenSaver(screenSaverTimeOut,screenSaverBeginFunction, screenSaverLoopFunction, screenSaverEndFunction);


PARAMETERS
  • screenSaverTimeOut
    go to screen saver mode after X seconds

  • screenSaverBeginFunction
    When enter a screen saver mode call this function

  • screenSaverLoopFunction
    While you are in screen saver mode, loop in this function.

  • screenSaverEndFunction
    When a button or rotary is change, it calls this function before going to the main loop again.


RETURNS
none.


EXAMPLE