-->
Page 1 of 1

System tick to call function?

PostPosted: Fri Jan 15, 2016 6:35 am
by Solexious
Hello all,

On the last detail of my code port to the esp8266, I'm currently using a function on energia that can call a function every x milli seconds via a system tick. This is great as a "setup and forget" that means you don't need to rely on a user remembering to call a function at regular intervals from the main sketch. I use "registerSysTickCb(function)", you can't set the frequency, but it does let me increase a value every time the system fires the call then call the actuall function after the correct delay.

Is there an equivalent with the arduino code base for the esp8266? (without having to add something to the main loop)

Best,

Sol

Re: System tick to call function?

PostPosted: Fri Jan 15, 2016 6:43 am
by reaper7

Re: System tick to call function?

PostPosted: Fri Jan 15, 2016 6:51 am
by Solexious
Cheers, will take a gander.

Sol