Single LED Blinking program by ARDUINO






//program for single LED blinking
//by-ALOK KUMAR PANDEY
//....................................................................................//

int led = 13;                            //we difine pin number 13 as name led
void setup()                            // this loop run sigle(one) time 
{            
pinMode(led,OUTPUT);        //here we difine pin no. 13 (i.e. led)as output pin
}

void loop() {                          //this loop run infinite times
 digitalWrite(led, HIGH);      // here we set pin 13 (i.e. led) high, it means it get on
 delay(1000);                        // one second delay
 digitalWrite(led, LOW);     // here we set pin 13 (i.e. led) low, it means it get off
 delay(1000);                     // again one second delay.

}

Comments

Popular posts from this blog

LTE - long-term evolution

VoLTE - voice over long-term evolution

Owner of internet