ESP-IDF for Arduino Users, Tutorials Part 2: Delay

delay(1000); // hang on a second, buddy

My Notes:

  • Read the docs, now or later
  • Delay doesn’t have to block like Arduino.
  • Delay some milliseconds like this:
vTaskDelay(pdMS_TO_TICKS(10));
#define DELAY(ms) vTaskDelay(pdMS_TO_TICKS(ms))#define DELAY_1S DELAY(1000)

--

--

--

Google Developer Platform. Advanced Trauma Life Support. Open Source. Abominator Class.

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

DevOps has become a buzzword!

Android Live Data + Services with MVP???(Part[2])

M-Files Implementation Benefits for Decision-Makers

Power of music while coding

EQMS on the Modern Cloud

You don’t always need a Cookie from the Jar on the top shelf

Episode 13: Sharing Images and Containers (Push-Pull in DockerHub)

What is a Front-end, back-end & Full Stack Developer?

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Ali Afshar

Ali Afshar

Google Developer Platform. Advanced Trauma Life Support. Open Source. Abominator Class.

More from Medium

Battling With Imposter Syndrome

If you want to earn in the top 10% in the IT industry

101 Create your first Substrate blockchain

Lambo is a software that can help you to invest in the crypto world