Closed jr1221 closed 3 months ago
Add a state machine setup with a pretty simple switch statement and enum.
Use a freertos task to be run in the background, waiting for queue get: https://github.com/DiegoPaezA/ESP32-freeRTOS/blob/master/Task_FreeRTOS/main.c Use a queue recieve wait: https://github.com/LetsControltheController/queue/blob/master/main/main.c Then check the enum value passed into the queue, and print the state change that occurs.
Priority should be high, the task should not be pinned.
States:
Add a state machine setup with a pretty simple switch statement and enum.
Use a freertos task to be run in the background, waiting for queue get: https://github.com/DiegoPaezA/ESP32-freeRTOS/blob/master/Task_FreeRTOS/main.c Use a queue recieve wait: https://github.com/LetsControltheController/queue/blob/master/main/main.c Then check the enum value passed into the queue, and print the state change that occurs.
Priority should be high, the task should not be pinned.