Go Down

Topic: "for" statement example error (Read 577 times) previous topic - next topic

pbricmont

On the "for" statement reference page (arduino.cc/en/Reference/For) the last example (fade an led up and down) has an error.

The line "if (i = 255) x = -1;" should read "if (i == 255) x = -1;" for the example to run correctly.

Go Up