https://embetronicx.com/tutorials/rtos/nuttx/blink-led-on-esp32-using-nuttx-rtos/
Blink LED on ESP32 using NuttX RTOS