Go Down

Topic: "for" statement example error (Read 640 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
 


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!

Arduino
via Egeo 16
Torino, 10131
Italy