CHAPTER 5

image

3 GPIO gp Command

The Raspberry Pi has a rich pool of resources to draw from. The GPIO resources, however, make it possible to interface it to all kinds of unplanned applications. In this chapter, we introduce the gp command and illustrate its use cases.

Unix Command Line Convention

Some folks jumping into the Raspberry Pi are also jumping into Linux for the first time, so before we look at the gp command and its options, it is worth reviewing the Unix (and thus Linux) command line convention. Knowing the rules will help you understand and apply the more complex command line option sequences.

When Unix was being developed (prior to ...

Get Exploring the Raspberry Pi 2 with C++ 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.