Writing your first Arduino Program
Blinking an LED Arduino has on-board LED at PIN13, which can be used for testing purpose. The program for blinking an LED for 1 second, can be written with the following methods. void setup() { pinMode (13, OUTPUT ); //Set the PIN 13 as output. } void loop () { digitalWrite (13, HIGH ); //Set PIN 13 High. delay (1000); //Wait for 1 sec. digitalWrite (13, LOW ); //Set PIN 13 Low. delay (1000); //Wait for 1 sec. } You can give a name to ...