Skip to main content
Iswarya
Associate III
Apr 11, 2019 6:27 PM UTC
Solved

GUItask

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???

This topic has been closed for replies.
Martin KJELDSEN
Martin KJELDSENBest answer
Principal III
Apr 12, 2019 6:31 AM UTC

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

1 reply

Martin KJELDSEN
Martin KJELDSENBest answer
Principal III
Apr 12, 2019 6:31 AM UTC

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