Arduino Led Blink Program



First Connect Your Arduino To PC
and Run this code in your arduino ide
Then the led no.-13 on arduino board start blinking : )

 




Source-Code -


#define led 13

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




void loop ()
{
  digitalWrite(led,HIGH);             // Led ON
  delay(1000);                          // 1000 is time in milisecond = 1 sec , So the light Blink in Delay of 1 s

  digitalWrite(led,LOW);             //Led OF
  delay(1000);                          // 1000 is time in milisecond = 1 sec , So the light Blink in Delay of 1s
}




: ) if you get any type of error then contact us : )
Arduino Led Blink Program Arduino Led Blink Program Reviewed by Coding Guy on October 05, 2019 Rating: 5

No comments:

Powered by Blogger.