vTaskDelay() vS. Delay()
Posted: Sat Jul 08, 2017 5:30 pm
by basinus
What is the difference between both? Why should i use
Code: Select all
portTICK_PERIOD_MS = 10;
vTaskDelay(1000 / portTICK_PERIOD_MS);
// 1000/10 = 100 Ticks
instead of
Delay(1000)? And what is exactly one tick?
Re: vTaskDelay() vS. Delay()
Posted: Sun Jul 09, 2017 2:45 am
by ESP_Sprite
Where do you get the Delay() function from? It's not part of ESP-IDF.
Re: vTaskDelay() vS. Delay()
Posted: Sun Jul 09, 2017 3:04 am
by WiFive
Delay is an arduino function wrapper that calls vtaskdelay. You should use it if you are using arduino, and also you should post in the arduino forum.
https://esp32.com/viewtopic.php?f=2&t=2377
A tick is what you configure it to be. THE TICK is a new Netflix show.