Arduino

Timely blinking of LED

Blink an LED with certain delay.

int pin=13;
int off=500;

void setup()
{
pinMode(pinNo,OUTPUT);
}

void loop()
{
digitalWrite(pin, HIGH);
delay(off);
digitalWrite(pin, LOW);
delay(off);
}

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License