Coding With Fun
Home Docker Django Node.js Articles Python pip guide FAQ Policy

Arduino time function


May 15, 2021 Arduino



Arduino offers four different time-action functions. They are:

Serial number Functions and describe
1

The delay() function

The delay() function works very simply. /b10> It accepts a single integer (or number) argument. /b11> This number represents the time, in milliseconds.

2

Delay Microconds() function

The delayMicroseconds() function accepts a single integer (or number) argument. O ne thousand microseconds in a millisecond and one million microseconds in a second.

3

Millis() function

This function is used to return the number of milliseconds when the Arduino board starts running the current program.

4

Micros() function

The micros() function returns the number of microseconds when the Arduino board starts running the current program. /b10> The number overflows after about 70 minutes, i.e. back to zero.