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

On the "for" statement reference page ( 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.

Pages: [1]   Go Up
Jump to: