Coding
/*
Arduino LED Blinking
Function: Turn on and Turn off the LED for 1 second continuously
Prepared By: Krishnarajsinh Jadav
Website: http://www.Kraj.in
*/
// Void setup function runs only once when you will press reset switch or turn on the board
void setup()
{
pinMode(13, OUTPUT); // initialize digital pin 13 as an output.
}
// Void loop function runs over and over again forever
void loop() {
digitalWrite(13, HIGH); // turn the LED on
delay(1000); // wait for a second (1000 milliseconds = 1 second)
digitalWrite(13, LOW); // turn the LED off by making the voltage LOW
delay(1000); // wait for a second (1000 milliseconds = 1 second)
}
0 Comments