Blink an LED with Arduino
JOHURUL ISLAM · 16 Oct 2026 · 1 min read
On this page
What you need
A board, a 220 ohm resistor and an LED.
Wiring
LED long leg to pin 13 through the resistor
Short leg to GND
The code
void setup() {
pinMode(13, OUTPUT);
}
void loop() {
digitalWrite(13, HIGH);
delay(500);
digitalWrite(13, LOW);
delay(500);
}