This library allows an Arduino to interface with a standard digital Playstation 1 controller. Installation is simple, just unzip the package into your Arduino Directory\hardware\libraries.
Use of the library is simple, only requiring an initialization, a setup, and then a read command.
The included example shows a simple application of the library.
The pinout for the Playstation controller is available at: http://www.gamesx.com/controldata/psxcont/psxcont.htm
setupPins(dataPin, cmndPin, attPin, clockPin, delay)
The returned data is an unsigned integer, with each bit representing a specific button. It can be tested using a simple if statement.
Ex: if (data & psxUp)
Each button is defined in the library, so there is no need to use hex codes when testing.
Protocol information based off of Andrew J McCubbin's analysis.