Skip to main content
Iswarya
Associate III
April 11, 2019
Solved

GUItask

  • April 11, 2019
  • 1 reply
  • 642 views

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.
Best answer by Martin KJELDSEN

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
April 12, 2019

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