Serial.read() and Arduino

Switching the Arduino with 0 and 1 is nice. Want to use 2, 4, 7, or 9? Check out the snipplet.

Below 5 the state is 0, values greater than 5 set the state to 1.

This entry was posted in Arduino. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

Time limit is exhausted. Please reload CAPTCHA.