bullroarer:
joshuabardwell:
You can additionally help the compiler out by using the const keywordUploading the new code in the next reply. Still unsure where to put the constants, the setup() may be my best shot.
Declare constants and global variables outside of setup() or loop(). If you declare a variable or constant inside a function, it is only accessible within that function, and its value is reset when the function exits.
const int foo = 1;
const int bar = 2;
void setup()
{
}
void loop()
{
}