Hardware Reference
In-Depth Information
Figure 2-2. The P8 and P9 cape headers
The simplest kind of sensor provides a single digital status, such as off or on, and can be
handled by an
input mode
of one of the Bone's 65 general-purpose input/output (GPIO)
pins. More complex sensors can be connected by using one of the Bone's seven analog-to-
digital converter (ADC) inputs or several I
2
C buses.
Chapter 3
discusses some of the
output mode
usages of the GPIO pins.
All these examples assume that you know how to edit a file (
Recipe 1.6
) and run it, either
within the Cloud9 integrated development environment (IDE) or from the command line
(
Recipe 5.3
)
.