Skip to content

buzzy/PS2X

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

64 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PS2X

PS2 controller library for ESP8266

Example:

PS2X pad;

setup():
pad.ConfigGamepad(DAT_PIN, CMD_PIN, ATT_PIN, CLK_PIN, true, true);

loop():
//set the second parameter to 255 to make the motor rumble
pad.ReadGamepad(false, 0);

//Possible button values are found in the .h file
Serial.print(pad.Analog(ANALOG_BUTTON_TO_READ));
Serial.print(pad.Button(DIGITAL_BUTTON_TO_READ));

About

PS2 controller library for ESP8266

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 100.0%