LED Blink

LED Blink

Parts of an LED

Anode

The anode is the longer and positive side of the LED

Cathode

The cathode is the shorter and negative side of the LED

Wiring Diagram

Program

void setup() {
  pinMode(8, OUTPUT);

}

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

}