Arduino-1 Blink LED
This post consists of blinking an LED Present on the Arduino Uno Board. On the Arduino Uno Board there is an yellow LED labelled with L on the Board.
Parts Required:
1.Arduino Uno
2. USB Cable A-B
Sketch:
const int LED=13;
void setup()
{
pinMode(LED,OUTPUT); //setting the pin 13 as output on which the L LED is connected
}
void loop()
{
digitalWrite(LED,HIGH); //writing one on the pin to make the LED ON
delay(1000);//1 sec delay
digitalWrite(LED,LOW);//writing zero on the pin to make the LED OFF
delay(1000);//1 sec delay
}
Comments
Post a Comment