yield() and delay() best practices
Posted: Sun Feb 04, 2018 4:17 pm
Hi all,
I keep hearing about yield, and delay();
delay() is obvious, it sleeps the main thread after the specified time it jumps back to work.
yield() appears to work background processes.
So, my question is, in my loop(), should I call both yield and delay? Or just delay?
Additionally I have heard the delay calls yield(), but I don't know if that's true! Advice and best practices please.
I keep hearing about yield, and delay();
delay() is obvious, it sleeps the main thread after the specified time it jumps back to work.
yield() appears to work background processes.
So, my question is, in my loop(), should I call both yield and delay? Or just delay?
Additionally I have heard the delay calls yield(), but I don't know if that's true! Advice and best practices please.