2019-04-11 11:27 AM
Hi @Martin KJELDSEN
I added two tasks in main.cpp. If I added other tasks apart from GUItask, the LCD is displaying image.
If I add vTaskDelay(40);, the image is show.n. Is it neccessary to add vTaskDelay in other task delay????
Should I add vTaskDelay in each task to display image in LCD???
Solved! Go to Solution.
2019-04-11 11:31 PM
Hi @Iswarya,
Each other task than the GUI task should have some task delay to allow other tasks to be scheduled in by the OS scheduler. If you do not add a taskdelay in some form then your CPU will be 100% utilized for that task and the GUI task may never get scheduled in. Does that make sense?
/Martin
2019-04-11 11:31 PM
Hi @Iswarya,
Each other task than the GUI task should have some task delay to allow other tasks to be scheduled in by the OS scheduler. If you do not add a taskdelay in some form then your CPU will be 100% utilized for that task and the GUI task may never get scheduled in. Does that make sense?
/Martin