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