/* ---------Title----------- File: Blink1 Started: 10/28/13 Program Description: Turns on an LED on for one half second, then off for one half second, repeatedly. */ // -----Initializations----- int led = 13; // give pin 13 a name (led): void setup() { pinMode(led, OUTPUT); // initialize the digital pin as an // output. } // --------Main Code-------- void loop() { // the loop routine runs over and over digitalWrite(led, HIGH); // turn the LED on (HIGH is the // voltage level) delay(500); // wait a half second (500 ms) digitalWrite(led, LOW); // turn the LED off by making the // voltage LOW delay(500); // wait a half second (500 ms) }