Pages: [1]   Go Down
Author Topic: "for" statement example error  (Read 482 times)
0 Members and 1 Guest are viewing this topic.
0
Offline Offline
Newbie
*
Karma: 0
Posts: 1
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

Pages: [1]   Go Up
Jump to: