O'Reilly logo

30 Arduino Projects for the Evil Genius, Second Edition, 2nd Edition by Simon Monk

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required