Blink LED with Arduino
Hi Friends!!!
Let's see little fun with arduino.
You need below things,
1). Plug your Arduino board to computer
2). Open Arduino IDE
3). Select ardunio board and COM port
4). Upload below sample code
void setup()
{
pinMode(2,OUTPUT);//Your pin.Don't use 0 pin or 1 pin
}
void loop()
{
digitalWrite(2,HIGH);
delay(1000);
digitalWrite(2,LOW);
delay(1000);
}
Thank you very much!!!
Let's see little fun with arduino.
Blink LED with Arduino
- Arduino board
- LED bulb
- Resistor
- Some wire
1). Plug your Arduino board to computer
2). Open Arduino IDE
3). Select ardunio board and COM port
4). Upload below sample code
void setup()
{
pinMode(2,OUTPUT);//Your pin.Don't use 0 pin or 1 pin
}
void loop()
{
digitalWrite(2,HIGH);
delay(1000);
digitalWrite(2,LOW);
delay(1000);
}
Thank you very much!!!
Post a Comment