Getting access to SPI devices

Now, we are ready to manage real SPI devices. We can find tons of supported devices in Linux's tree that are usually grouped according to their specific operations in complete analogy to the I2C case.

In the next section, we will see several different kinds of devices all connected to the main CPU through the SPI bus. Also, we will use different embedded kits to test them, but as said earlier, every command can be easily repeated on every GNU-/Linux-based boards with a similar configuration.

LCD display

As the first example, we will use the following tiny LCD display, which can be used in simple applications because it's cheap and well supported by BeagleBone Black's kernel:

Get GNU/Linux Rapid Embedded Programming 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.