Low Orbit Flux Logo 2 F

Arduino Uno - Blink LED

Here is the code:


void setup() {
  pinMode(13, OUTPUT);     // set pin as output
}

void loop() {
  digitalWrite(13, HIGH);   // on
  delay(1000);              // wait 1 second
  digitalWrite(13, LOW);    // off
  delay(1000);              // wait 1 second
}

It was connected like this:

pin 13 <== [+] LED [-] <== resistor <== ground

Arduino Uno LED Blink Circuit Diagram

You can find the Arduino Uno R3 on Amazon here.

(paid link)