Go Down

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


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

Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

via Egeo 16
Torino, 10131