Some code that allows you to interface over SPI with the microcontroller onboard a sony ps2 controller, using an arduino.