// Arduino.h is the main Arduino core header. It makes pinMode(), digitalWrite(), delay(), and
// constants such as HIGH available.
#include <Arduino.h>

// Blink the LED already wired onto the Uno.

// void means this function returns no value. setup() runs once when the board starts or resets.
void setup() {
  // LED_BUILTIN refers to the onboard LED pin; OUTPUT allows the board to drive it.
  pinMode(LED_BUILTIN, OUTPUT);
}

// After setup(), Arduino calls loop() again and again.
void loop() {
  // HIGH sets the output high. On the Uno, that lights the built-in LED.
  digitalWrite(LED_BUILTIN, HIGH);
  // delay() waits in milliseconds: 1000 ms = 1 second. The program does not do other loop work
  // while waiting.
  delay(1000);
  // LOW sets the output low, turning the LED off.
  digitalWrite(LED_BUILTIN, LOW);
  // After this second pause, loop() starts over and the LED turns on again.
  delay(1000);
}
