// 2009 mlab.uiah.fi/paja // An example of flashing LED (Light Emitting Diode) // PIN 13 ---> 220½ resistor ---> LED ---> GND int pinInt = 13; void setup() { Serial.begin(9600); pinMode(pinInt, OUTPUT); // sets the digital pin as output // Try following codes first. LED is switched on once for 5 second. digitalWrite(pinInt, HIGH); // Delay pauses the program for the given time (milisecond). delay(5000); digitalWrite(pinInt, LOW); } void loop() { // Try following codes second. LED flashes forever. /* digitalWrite(pinInt, HIGH); delay(500); digitalWrite(pinInt, LOW); delay(500); Serial.println("Flash!"); */ }