
Figure 6-3.
The RasPiO Portsplus port ID board
Digital Output: Lighting Up an LED
The easiest way to use outputs with the GPIO pins is by connecting
a light emitting diode, or LED. You can then use the Linux command
line to turn the LED on and off. Once you have an understanding
of how these commands work, you’re one step closer to having an
LED light up to indicate when you have new email, when you need
to take an umbrella with you as you leave your house, or when it’s
time to go to bed. It’s also very easy to go beyond a basic LED and
use a relay to control a lamp on a set schedule, for instance.
Beginner’s Guide to Breadboarding
If you’ve ne ...