I have a book called "Arduino for Beginners" by Mike Cheich in which there is a sketch to make an LED blink but when entered on my netbook it gives me an error message "redefinition of void loop () This void loop appears within the sketch I have copied. Anyone help me to resolve the issue ?
/*
*Blink Turns on an LED on for one second, then off for one
*second, repeatedly
*/
// Pin 13 has an LED connected on most Arduino boards.
// Give it a name:
int led = 13;
// The setup routine runs once when you press reset:
void setup() {
// Initiate the digital pin as an output.
pinMode(led, OUTPUT);
}
// The loop routine runs over and over again forever:
void loop() {
digitalWrite(led, HIGH);
// Turn the led on (HIGH is the voltage level)
delay(1000);
// Wait for a second
digitalWrite(led. LOW);
// Turn the LED off by making the voltage LOW
delay(1000);
// Wait a second
Please follow the advice given in the link below when posting code. Use code tags (the </> icon above the compose window) to make it easier to read and copy for examination
When using the Web editor you can have 2 or more tabs in the editor, like this
In this example there are 2 tabs. One named Blink.ino and the other, Blink.txt
Do you have more than one tab and if so what are their names and what is on them
I will stop helping. If you want further help you should follow the recommendations given in this post. Especcially with beeing so short on information you annoy your potential helpers.