am I doing something wrong?
Hi,I'm trying to make multitasking on ESP8266, I'm using ESP8266Scheduler and LiquidCrystal_I2C. I can see with console that code is executed and multitasking is working. But the values on display refresh with big delay. I've managed to find out the reason ... it's delay in other task, after removing it it start to refresh screen ok.I'm a newbie in microcontrollers, am I doing something wrong? Maybe I just can't run 2 tasks and expect that it will handle dealy and run rest of the code "async".
So it's actually good to use delay() instead of millis in that context.
I think you mean "as good" as using millis() since properly written co-operative multitasking is what the "BlinkWithoutDelay" principle is about. \
The point is that properly written co-operative multitasking code avoids the overhead of the RTOS. You no more "spin" on millis() than does the RTOS.