🚚 SHIPPING ALL OVER KENYA
Beginner

Blink an LED with Arduino Uno

Blink an LED with Arduino Uno

You'll need an Arduino Uno, an LED, a 220ohm resistor and two jumper wires.

Step 1: Connect the LED's long leg through the resistor to pin 13, and the short leg to GND.

Step 2: Upload the sketch below and watch it blink.

Code
void setup() {
  pinMode(LED_BUILTIN, OUTPUT);
}

void loop() {
  digitalWrite(LED_BUILTIN, HIGH);
  delay(1000);
  digitalWrite(LED_BUILTIN, LOW);
  delay(1000);
}

Video

Need parts for this project?

Browse our full catalog of Arduino boards, sensors and components.

Shop components

Reviews

Be the first to review this guide.

Leave a review