Announcement

Collapse
No announcement yet.

sys_SetTimer()

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Kometen
    replied
    Not been revised yet?

    Leave a comment:


  • Mark Kevin
    replied
    Hi michaelwheel,

    Yes you are correct, the example is only for 3600 milliseconds or 3.6 seconds
    We will revise the internal function manual with this, Thank you.

    Leave a comment:


  • michaelwheel
    replied
    Just a point about this. In DIABLO16 Internal Functions available in this site, the function: "2.13.3. etTimer(timernum, value)" gives this example:

    "Example sys_SetTimer(TIMER5, 3600); //Set Timer5 for 1 hour."

    It would be 3600 ms which is 3.6 seconds, so, this is not an hour. Am I wrong?

    Leave a comment:


  • ESPsupport
    replied
    Yeah, that's what it means, you need to have another counter, within a timer interrupt that decrements and rearms the timer to get longer delays

    Leave a comment:


  • papatrexasgre
    replied
    OH no does it mean 65point535 seconds? OFC it does.. right? saw it the moment i posted it :S

    Leave a comment:


  • papatrexasgre
    started a topic sys_SetTimer()

    sys_SetTimer()

    Hello all. Just a quick question to clarify something.
    sys_SetTimer(timernum, value);

    value:Countdown period in milliseconds.

    but then in description
    Maximum timeout period is 65535 milliseconds or 65.535 seconds.
    I know that without doing anything what ever you put in value is considered ms.

    so the question is, how do I select if that number is ms or sec?

    Thanks for reading me.
Working...
X