CHAPTER 9

image

PiSpy

In Chapter 4, we saw that the Raspberry Pi 2 is powerful enough to compile its own kernel. This was necessary to install the rpidma kernel driver so that the pispy command could allocate and use DMA for data capture. In this chapter, we turn our attention to the pispy tool itself and learn how to use it. We also take a high-level look at how it works.

Introduction to pispy

The pispy command is a GPIO data capture tool. Much of what we do in this book involves GPIO inputs and outputs in some form or another, but programming GPIO pins can be quite a chore if you must do it blind.

A digital oscilloscope allows you to see the inputs ...

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.