SPI - snowpuppy/augreality GitHub Wiki
Raspberry Pi side
For SPI on the Raspberry Pi, we will be using the wiringpi library.
https://projects.drogon.net/raspberry-pi/wiringpi/
Installing the library
No Debian package is available, so you have to go straight to the source.
git clone git://git.drogon.net/wiringPi
cd wiringPi
git pull origin
cd wiringPi
./build
Using the library
Before running any code that uses SPI, the driver must first be initialized.
sudo gpio load spi