Chapter 2. Blinking LEDs

In this chapter, we will cover the following recipes:

  • Blinking LED without delay()
  • Connecting an external LED
  • Fading the external LED
  • RGB LED
  • LED bar graph
  • The 7-segment display

Introduction

In this chapter, we will explore LEDs with the Arduino. The fastest way to get some feedback from a system or from the Arduino is via an LED. They are simple devices which are either on or off. However, they form the basis for advanced technologies such as LED TVs, projectors, or lasers. In this chapter, we will also see how to use them efficiently and explore some interesting applications for them.

LED stands for Light Emitting Diode and, in its core, it's just a diode that emits light. LEDs are incredibly common these days and can be found ...

Get Arduino Development Cookbook 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.