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.
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.