![]() ![]() ![]() 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. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |