cancel
Showing results for 
Search instead for 
Did you mean: 

GUItask

Iswarya
Associate II

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

1 ACCEPTED SOLUTION

Accepted Solutions
Martin KJELDSEN
Chief III

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

View solution in original post

1 REPLY 1
Martin KJELDSEN
Chief III

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