/* Learn to use and blink an LED with Arduino - Tutorial More info and circuit schematic: http://www.ardumotive.com/how-to-blink-an-led-en.html Dev: Michalis Vasilakis / Date: 19/10/2014 */ //Constants const int ledPin = 3; void setup() { //Initialize the digital pin as an output with pinMode() pinMode(ledPin, OUTPUT); } void loop() { digitalWrite(ledPin, HIGH); // turn the LED on (HIGH is the voltage level) delay(3000); // wait for 3 seconds digitalWrite(ledPin, LOW); // turn the LED off by making the voltage LOW delay(3000); // wait for 3 seconds }