I am looking for an example that present a proper way to pass data between tasks:
Lets say I have a display, keyboard and some sensors eg. internal ADCs. I would like to show values from all sensors at some time on a display. After pressing a button, changing a view and presenting some text. After pressing another, going back to values.
I would use global variables, but it is described everywhere as a bad idea. On the other hand, if I used Queues (xQueueCreate, xQueueReceive, xQueueSend), I wouldnt have all data to display it and I believe that creating a copy after receiving them is just losing memory.