March 2017
Beginner to intermediate
422 pages
8h 4m
English
The SPI, or Serial Peripheral Interface, is similar to the I2C bus, but has a few advantages for a few more wires. Generally, you'd choose I2C or SPI based on the peripheral you are trying to talk to and what protocol it supports. For this recipe, we will look at configuring SPI for upcoming recipes.
Just like setting up I2C in the previous recipe, the easiest way to get going is with raspi-config. Run with sudo, and select Interfacing Options. Select P4 to enable SPI, and reboot.

Once you've enabled SPI and rebooted, you should find your bus on the device list:
Working with ...
Read now
Unlock full access