CHAPTER 4More LED Projects
IN THIS CHAPTER WE ARE GOING to build on those versatile little components, LEDs, and learn a bit more about digital inputs and outputs, including how to use push-button switches.
The projects that we are going to build in this chapter are a model traffic signal, two strobe light projects, and a bright-light module using high-power Luxeon LEDs.
Digital Inputs and Outputs
The digital pins 0 to 12 can all be used as either an input or an output. This is set in your sketch. Since you are going to be connecting electronics to one of these pins, it is unlikely that you are going to want to change the mode of a pin. That is, once a pin is set to be an output, you are not going to change it to be an input midway through a ...
Get 30 Arduino Projects for the Evil Genius, Second Edition, 2nd Edition 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.