Description
This project was to set up an Arduino board and program it to make an LED blink at set intervals.
Components Used
Arduino Code
/*
* Blink
*
* http://www.arduino.cc/en/Tutorial/Blink
*/
int ledPin = 13; // LED connected to digital pin 13
void setup() // run once, when the sketch starts
{
pinMode(ledPin, OUTPUT); // sets the digital pin as output
}
void loop() // run over and over again
{
digitalWrite(ledPin, HIGH); // sets the LED on
delay(500); // waits for a half second
digitalWrite(ledPin, LOW); // sets the LED off
delay(500); // waits for a half second
}