As pretty as the Larson (Memorial) Scanner is, it’s also a good demonstration of the Raspberry Pi’s GPIO controls using WiringPi. In this chapter, we’ll modify the circuit (slightly) and the program (a bit more) so that we can read data in as well. We’ll do it two ways, since it’s not a very big topic by itself: polled and interrupt driven. Once again, WiringPi makes this easy.
Let’s go ahead and modify the circuit first.
The Stuff You Need
Raspberry Pi and Larson (Memorial) Scanner ...