#include <Arduino.h>

// D8 -> series resistor -> LED anode; cathode -> GND.
// A variable name lets us refer to D8 consistently; the wire must actually be connected to D8.
const int ledPin = 8;
// Unlike LED_BUILTIN, this output controls the LED you wired on the breadboard.
void setup() {
  // Tell the microcontroller that D8 will send a signal rather than read one.
  pinMode(ledPin, OUTPUT);
}

void loop() {
  // D8 goes HIGH and current flows through the resistor and LED when wired correctly.
  digitalWrite(ledPin, HIGH);
  delay(1000);
  // D8 goes LOW to switch the external LED off.
  digitalWrite(ledPin, LOW);
  delay(1000);
}
