Closed Sylensky closed 1 year ago
@Sylensky Thanks for the question. Actually the Arduino core function delay(ms) uses yield() and thus gives the coroutine/thread version of sleep().
Cheers, Mikael
Oh thanks, this just pointed me into the direction of a bug in my code.
Hi,
Is it possible to add a popular
sleep(ms)
function back to the scheduler? I am looking for a similiar approach to avTaskDelay(ms)
from FreeRTOS for example.So far there is just a
yield()
which context-switches to the next task immediately.