It compiles well but only pin 13 is always high and don't get the expected result i.e; scanning effect.
This is the first time I've tried something at this level on my own.
Expectation:
Pin 13 must be high for 1000 ms and then ledPin must be set to 14 and the if function must check the value and set it back to 9 and then 10, then 11, then 12, then 13, then 9 and so on again and again(Loop).
What really happens:
The pin 13 is always high.
I'm using Arduino 1.0
What the problem might be:
Maybe something with the if statement.