const int LED =13; //It takes LED as integer and fixed it's value to 13(non-changable).
void setup() // Main setup of program is written here
{
pinMode(LED,OUTPUT); //It simply set pin 13 as output for LED.
}
void loop() // It simply repeat/run the program over and over until power is removed.
{
digitalWrite(LED,HIGH); //It simply set voltage at pin 13 to 5v means ON state.
delay(1000); //It simply DElay the Program for 1 sec.
digitalWrite(LED,LOW); //It simply set voltage at pin 13 to 0v means OFF state
delay(1000); //It simply DElay the Program for 1 sec.
}

Comments
Post a Comment