- Sat Oct 24, 2015 7:09 am
#32184
Hi,
sorry for reviving an old thread, but this is the closest I've seen to what I'm looking for.
Being new in this arduino environment (but not new in the embedded world), I am missing some info regarding this whole setup/loop/ticker thing.
ticker looks like a very good addition, allowing a way out of the uncertainties regarding timing of loop(), but the only doc I found --the ticker section of reference.md-- is a bit light. Where can I find a better doc?
Is there any in depth documentation regarding the timing of loop and ticker?
My main questions are:
* how reliable is the timing of the callbacks? What situations would cause a delay or even skipping of a callback?
* when can callbacks be fired? Any time, or only in delay() + end of loop() or ...
* would it be safe/functional to call delay() from inside a ticker callback? The fact that the callback itself would need to be protected against re-entry is something else.
And if someone has the following info, it would be nice:
* what libraries/functions are known safe regarding being called from a ticker callback? I'm especially interested in SPI, GFX and OneWire libs.
* what libraries are known unsafe? I know about the predictable incompatibility with network, serial and file, but others must exist.