Suspend Main Loop
Suspend Main Loop
Is there a way to suspend the loop() completely? I will be using tasks and timers to run my Arduino code.
Re: Suspend Main Loop
Since loop is a FreeRTOS task, possibly by killing it with vTaskDelete(NULL). Or if you want to resume it later, you can block on any FreeRTOS synchronization primitive with portMAX_DELAY as timeout. You can use queue, semaphore, task notification, etc for this.
Re: Suspend Main Loop
Yes, it is possible. You can even do it from setup(), just call vTaskDelete(NULL)
Who is online
Users browsing this forum: Google [Bot] and 59 guests