Pixy for Raspberry Pi
Included here are some C++ and Python code that can be used to read data from the Pixy camera over SPI.
The C++ code requires Wiring Pi. Compile it using the Makefile after installing Wiring Pi. Test using the echo program.
The Python code requires a modified version of the Python wrappers to Wiring Pi known as WiringPi2-Python. I had to fix the SPI read/write function in it so I could get data from the bus. After installing the Python wrappers you should be able to run echo.py to read what the Pixy is sending.
You can use the Arduino cable included with your Pixy and some jumpers to connect to the Raspberry Pi. Connect MISO, MOSI, SCK and Ground. The table below is what I used.
You can also get the PixyMon software compiled on the Raspberry Pi by following the instructions in the host/linux/README.linux file. You may need to remove -mno-ms-bitfields from the flags in the Makefile that is generated before succesfully compiling.