LED Blink
LED Blink
LED Blink
Parts of an LED
Parts of an LED
Anode
Anode
The anode is the longer and positive side of the LED
The anode is the longer and positive side of the LED
Cathode
Cathode
The cathode is the shorter and negative side of the LED
The cathode is the shorter and negative side of the LED
Wiring Diagram
Wiring Diagram
Program
Program
void setup() {
pinMode(8, OUTPUT);
}
void loop() {
digitalWrite(9, HIGH);
delay(1000);
digitalWrite(9, LOW);
delay(1000);
}