Activity E2 — Breadboards
Level 1 — Connect an LED to your Arduino using a breadboard
Get to know the breadboard
Connect the LED
void setup() {
pinMode(5, OUTPUT); // set up pin 5 as an output.
}
void loop() {
digitalWrite(5, HIGH); // turn the LED on
delay(100); // wait for 1 tenth second
digitalWrite(5, LOW); // turn the LED off
delay(1000); // wait for 1 second
}