Chapter    16

Challenge 4: Examining the Software

It’s possible you’ve already skimmed through this chapter and seen the sketch you’ll be uploading to the Challenge 4 gizmo. If you haven’t, go ahead... get it over with. Take a look at Listing 16-1 and then come back . . . we’ll wait.

Okay . . . what did you think? Was it a bit longer than you expected? Does that make you nervous? Well, don’t worry. Often the most scary-looking sketch is nothing more than a bunch of code repeated over and over. Back in Chapter 12, you learned about how you can insert an If-Else statement into the main program loop to check a condition again and again and again. But sometimes an If-Else statement isn’t what’s needed. Sometimes what you have to do is constantly ...

Get Arduino Adventures: Escape from Gemini Station now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.