I keep getting the error : redefinition of 'void setup()' void setup (){ ^

I got my arduino uno a few days ago, and the same problem keeps happening.

Every time I try to upload or verify my code, I keep getting the same error message. For all of the variables i declare, it also give me a message like this

error: redefinition of 'const int greenLEDPin' }const int greenLEDPin = 9;

I've even tried verifying or uploading my code that was working the other day, and I get the same error now.

Any ideas?

Post your code, we're not mind readers.

Could you have your .ino file in two tabs at once?

Hi,
Can you please post a copy of your sketch, using code tags?
They are made with the </> icon in the reply Menu.
See section 7 http://forum.arduino.cc/index.php/topic,148850.0.html

Tom.... :slight_smile:

quesadilla:
Every time I try to upload or verify my code, ...

What code?

Please use code tags.

Read this before posting a programming question

How to use this forum