delay(ms)
Pauses the program for the specified amount of time in milliseconds.
Parameters
ms - Delay in milliseconds.
Returns
None
Example
#include "Arduino.h"
void setup() {
}
void loop() {
printf("Delay since start in millis %lu \n", millis());
printf("Delay since start in micros %lu \n", micros());
delayMicroseconds(1000000); // Delay 1 second
delay(1000); // Delay 1 second
}