![]() dmadison/ArduinoXInput/blob/master/examples/ReceiveCallback/ReceiveCallback.ino /* ![]() You need to merge this code into your current code. The callback example shows how receive rumble packets. The rumble code currently in your code must be removed. The gamepad tester online confirms all the inputs working but it comes up with 'N/A' under vibration which is why I think there is a communication issue, or possibly that I'm inputting the code in the wrong places for it to operate but typed correctly so it understands it?įeel free to take a look through the code & let me know if I have missed anything! (I have also tried changing the game vibration out to all 4 controller options in case it was being randomly assigned). When I set the pinmode on the LED/output pin to on or off then they work as expected, (being high/low) but it doesn't change when rumble is sent from the game. so I think it's more to do with how I get the computer to recognize the Leonardo as a vibration capable gamepad. I have tried with LED_builtin instead of using the actual output pin and got nothing. The not so great news is the rumble out still isn't working, I have tried editing the code in multiple different ways to no avail.Īrcade_controller_rumble_non_working.ino (7.4 KB) Sorry for the delay, I had to wait for the game files to be sent before I could fully test.įirstly, the great news is I have managed to get all the inputs I have to work! Let me know if you need any more information, Is this 5v send possible or am i barking up the wrong tree & back to the drawing board? I need the Arduino on this rumble signal to trigger a 5v relay to enable the main escape room control system to fire the next set of events. The requirements are simple but I just want to check the Arduino can do what i need.Ĭoin acceptor (hx-616) input (haven't installed and tested but believe good with 10kohm resistor)įor the coin acceptor, it sends a pulse when a coin is inserted, i believe with this when wired correctly it will act as another button and i can start the game with that button as the input & have an indistructables page that explains how to do this correctly.įor the output trigger, the game sends out a 'rumble/vibration' signal to 'somewhere' (game developer is unsure where it is being sent to, game was designed in G-develop using gamepads version 0.5.0 if that helps locate the location) I have just purchased an Arduino Leonardo r3 (ATMEGA32U4-AU) to work as a game controller for a custom game created for an escape room I'm currently building. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |