

Ps2x.read_gamepad(small motor on/off, larger motor strenght from 0-255) * You must Read Gamepad to get new values Serial.println("GuitarHero Controller Found") Serial.println("DualShock Controller Found") Serial.println("Unknown Controller type") Serial.println("Controller refusing to enter Pressures mode, may not support it. Serial.println("Controller found but not accepting commands. Serial.println("No controller found, check wiring, see readme.txt to enable debug.

Serial.println("Go to for updates and to report bugs.") Serial.println("holding L1 or R1 will print out the analog stick values.") Serial.println("Try out all the buttons, X will vibrate the controller, faster as you press harder ") Serial.println("Found Controller, configured successful") or call config_gamepad(pins) again after connecting the controller.Įrror = nfig_gamepad(13,11,10,12, true, true) //GamePad(clock, command, attention, data, Pressures?, Rumble?) you must always either restart your Arduino after you connect the controller, right now, the library does NOT support hot-pluggable controllers, meaning You can see the results in the serial monitor window by pressing different keys. You need to use the PS2X library for this code.Īfter adding the library to Arduino, you can open PS2X library Example or Copy the following code and upload it on your board.
