Someone of you can help me with code issue? I got the generic compiling error: error: expected primary-expression before '{' token
with this part of code code:
for (int i=0; i<2; i++) {
PotValue[i] = analogRead(PotPin[i]); //This is the error line
MappedPotValue[i]=(PotValue[i]+1)/103;
//SomeCode Here
}
So. My target is to write in PotValue Array all the values of all Pots in Arduino Board
PotValue and MappedPotValue are int arrays of 2 lenght
And PotPin has been declared as:
#define PotPin {A0, A1} // These are two analog pins on arduino board
the for loop is inside a timer interrupt
thx for help