So im still kind of new with the C like coding.
I have variable named X it changes from 3 then 4 then 5 incrementing by 1 each time I toggle pin 8 low to high, this is working fine. What i want to do now is use this variable to change a pin out state.. my code fore using the variable looks like this:
int X = 3;
//I tried digitalWrite(led & X, HIGH);
in short it should be the same as digitalWrite(led3, HIGH);
Thanks for any help. Shane