Looks like it should work. Assuming that it compiles. That is the line Okay then ill .... won't compile is not a comment line...
How do you know it is not working? If you verify that it compiles and downloads, then is should work...
One way I experiment is to use pin 13's LED to help me test... That is I do something like:
Code:
nt pin = A17;
void setup()
{
pinMode(pin, OUTPUT); // sets the pin as output
pinMode(13, INPUT); // use it to see state of other pins...
}
void loop()
{
digitalWrite(pin, HIGH);
delay(2000);
digitalWrite(pin, LOW);
delay(2000);
}
Then run a jumper from your pin A17 to pin 13 and the LED should reflect the current state of pin A17...