If you use Arduino-ESP32, you automatically have FreeRTOS available. In fact, the user-implemented setup()
and loop()
functions are run in a FreeRTOS task. Just start calling to the FreeRTOS APIs. See e.g. Multitasking on ESP32 with Arduino and FreeRTOS | Savjee.be
1 Like