Hi i want to learn how esp32 works. Now a days I'm working on PID Controller in esp32 use FreeRTOS by default and for this I need to wrtie the whole PID controller by myself. I went through the documentation of esp32 but not really helpfull. I look to the nuttx PID Controller code. I understand the code of esp32_pid.h but really don't know how to use it. for example i want to blink led in such a way that RED led blink for 5 sec and after that an interrupt occur and PID change and it turn on the BLUE led and then green. how I can do this what files i need to change. second I'll be glad if someone share the some documentation for the coding so i can learn from it.
NOTE: I did study the offical documentation.