if (on) digitalWrite(13, HIGH);else digitalWrite(13, LOW);
on is probably a boolean (either true or false) or an int either 1 or 0, so it is equivalent to:Code: [Select]digitalWrite(13, on);
That code makes the assumption that HIGH and LOW are the same values as true and false.
What does the ? do and the : with both LOW & HIGH.
Please enter a valid email to subscribe
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