Code error...

Hi, I have been working on a code for a while, and decided to compile it to fix any errors. I got one on the first line, and I can't figure out what to do. Please help!

Line #1-4:
int B1 = 2;
int B2 = 13;
int L1 = 6;
int L2 = 10;

Error:
sketch_jan22a:1: error: expected unqualified-id before numeric constant

Any ideas are appreciated!

Any ideas are appreciated!

Maybe not. Post ALL of your code and the EXACT error message.

Just realzed that wasn't neccisary. After many tries to fix the problem, I found that all i had to do was change the namo of B1 to B2 and B2 to B3. Must not have liked the name B1. Sorry for wasting your time. :frowning:

Dannyboy001:
Must not have liked the name B1.

You can look up all pre-defined binary constants of the Arduino core library in the file
...\hardware\arduino\cores\arduino\binary.h

B1 is a defined constant with the value of 1.