-->
Page 2 of 4

Re: How many simultaneous timers

PostPosted: Sun Feb 26, 2017 5:05 pm
by jimg
It's been 6 months or so. Did you get a chance to add more timers? If so, how does one access them?

Re: How many simultaneous timers

PostPosted: Tue Feb 28, 2017 11:42 pm
by Mmiscool
So I have not had a chance to ad a second timer how ever as I was sifting threw the source code I noticed a little gem that cicciocb added a long time ago along with the UDP commands that never made it in to the docs. I added it to the docs tonight.

There are 2 types of timers available.

the normal timer that requires the device to be in a wait state to fire and the timercb command that follows the same format but will execute immediately interrupting the currently running line of code.

The normal timer requires the branch to end with a wait wile the timercb requires the branch to end with a return.

See the following link.
https://docs.google.com/document/d/1EiY ... zg1fyepkg2

Both timers can be used at the same time. Just note the differences.

Re: How many simultaneous timers

PostPosted: Wed Mar 01, 2017 10:37 am
by jimg
Excellent. I don't know how I overlooked timercb, but it solves a LOT of problems for me. Thanks!

Re: How many simultaneous timers

PostPosted: Wed Mar 01, 2017 4:42 pm
by jimg
timercb 100,[doit] seems to work okay, but when I try to stop it with
timercb 0
I get the error "timercb line not found!"