/*
Blink
Switching a LED on and off
*/// integer variable led is declaredintled=2;// the setup() method is executed only oncevoidsetup(){// the led PIN is declared as digital outputpinMode(led,OUTPUT);}// the loop() method is repeatedvoidloop(){// switching on the leddigitalWrite(led,HIGH);// stopping the program for 1000 millisecondsdelay(1000);// switching off the leddigitalWrite(led,LOW);// stopping the program for 1000 millisecondsdelay(1000);}