Program
/*
* Intermittent
*
* Basic example with Arduino. Switching on and off of a LED
* with a cadence of 1 s using the 13 PIN as output
* is not necessary to use a resistor for LED
* exit 13 Arduino has it built-in.
*
* http://www.arduino.cc/en/Tutorial/Blink
*/
int ledPin = 13; // Defi nition of the PIN 13 output
void setup() //Confi guration
{
pinMode(ledPin, OUTPUT); // designates the PIN 13 digital output
}
void loop() // operating loop
{
digitalWrite(ledPin, HIGH); // activates the LED
delay (1000); // 1 s wait (on-time)
digitalWrite(ledPin, LOW); // disables the LED
delay (1000); // 1 s wait (off-time)
}
8 8