Syntax
void delay(
    uint32_t dwMs
);
ContentsIndex
PreviousUpNext
delay
Example
Syntax
void delay(
    uint32_t dwMs
);
Description

Pauses the program by setting up parameter to designate time to pause(unit:ms)

Parameters
Parameters 
Description 
uint32_t dwMs 
Time to pause in ms 
Example
int led = 13;
void setup()
{
    pinMode(led,OUTPUT);
}
void loop()
{
    digitalWrite(led,HIGH);
    delay(1000);
    digitalWrite(led,LOW);
    delay(1000);
}
File

wiring.h

Group