TFT_eSPI and ESP-NOW multi-tasking compatibility #1488
Replies: 4 comments 6 replies
-
I am not using Task Scheduler, or vTaskPintoCore. I am just Simple Multi-Tasking |
Beta Was this translation helpful? Give feedback.
-
I am not familiar with ESP NOW although I do know what it does. It will not be easy to debug without a detailed knowledge of how you are using the two tasks and how they might be interacting. Typically these messaging systems use a call back and the data will need to be stored and passed to the other processor. Only one processor can handle the TFT so the tasks need to be well partitioned. Bear in mind that TFT_eSPI is intended for a single tasking envionment, the ESP32 is actually running an RTOS in the background so maybe these two tasks just won't cooperate to properly manage the different acitivites. So it will need to be debugged by test and inspection to identify the root cause. Out of interest I found this link so might have a play with ESP NOW at some point: I will move this to a discussion as there is no identifyable issue I can see with TFT_eSPI. |
Beta Was this translation helpful? Give feedback.
-
Thanks for responding @Bodmer |
Beta Was this translation helpful? Give feedback.
-
Characters are drawn pixel by pixel so the larger the character, the longer it takes to draw. The sketch TFT_Char_times illustrates this. You seem to be investigating everything I would. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I am using an ESP32 with ILI9341 320x240 Touch Screen, 2 sensors and ESP-NOW, and also communication via Serial.
ESP-NOW is on core 0 and the rest on core 1.
The firmware runs ok for a few mins and then, the LCD turned inverted colors; i.e. black becomes white, green becomes purple, etc.
I had spent the last 10 days trying all sorts of ways from Tasks Scheduler, Simple Multi-Tasking, etc. but still can't fund the source of the issue. This issue is driving me nuts...
HELP!
Beta Was this translation helpful? Give feedback.
All reactions