What is the FreeRTOS equivalent to Arduino's delay()?
Instead of Arduino’s
delay(5); // delay for five milliseconds
use this in FreeRTOS:
vTaskDelay(5 / portTICK_PERIOD_MS);
If this post helped you, please consider buying me a coffee or donating via PayPal to support research & publishing of new posts on TechOverflow