Activity E2 — Breadboards

Level 1 — Connect an LED to your Arduino using a breadboard

Get to know the breadboard

A breadboard Breadboard connections

Connect the LED

Connecting an LED to the arduino using a breadboard
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
}

Claim your achievement

Sample claim slip