I'm using this excellent library to run tasks, but I want the ESP to sleep otherwise. I have implemented light sleep, but that only runs on a delay() call. If my fastest task is 50ms and I don't care about accuracy (I'm fine being 20ms over), can I add a 20ms delay() call in the loop? The only other thing that runs is the Task scheduler.
Would it be possible to have Task optionally call delay() in its downtime, so I don't have to do it?
I'm using this excellent library to run tasks, but I want the ESP to sleep otherwise. I have implemented light sleep, but that only runs on a
delay()call. If my fastest task is 50ms and I don't care about accuracy (I'm fine being 20ms over), can I add a 20msdelay()call in the loop? The only other thing that runs is the Task scheduler.Would it be possible to have Task optionally call
delay()in its downtime, so I don't have to do it?