Professional Documents
Culture Documents
To install, unzip and place 'PS2X_lib' folder into your 'C:\Users\{user name}\
Documents\Arduino\libraries' folder or '{Arduino IDE path}\hardware\libraries" or
{Arduino IDE path}\libraries" directory.
Restart the Arduino IDE, and open up the example sketch.
open up the PS2X_lib.h file and change (remove the comment markers)
//#define PS2X_DEBUG
//#define PS2X_COM_DEBUG
to
#define PS2X_DEBUG
#define PS2X_COM_DEBUG
to enable debug messages. Save the file, and recompile the example sketch. Open up
the terminal
and watch what is written. If the problem is not something obvious, dump the serial
output into a comment on my website and I will try
to help you.
/******************************************************************
* Super amazing PS2 controller Arduino Library v1.8
* details and example sketch:
* http://www.billporter.info/?p=240
*
* Original code by Shutter on Arduino Forums
*
* Revamped, made into lib by and supporting continued development:
* Bill Porter
* www.billporter.info
*
* Contributers:
* Eric Wetzel (thewetzel@gmail.com)
* Kurt Eckhardt