So I'm trying to control the button inputs of a Nintendo 3DS with the arduino sending PWM 5V pulses from ports 2 through 9 to the UP,DOWN,LEFT,RIGHT and A,B,X,Y buttons of the 3DS but I clearly don't know basic electronics because it's not doing anything.
The LED bargraph is just so I can see which buttons are being pressed by the arduino when it finally gets working and the buttons on the side are to control an LCD screen that I've yet to set up.
But just basically how do I connect the cable from the 3DS to these PWM ports so that a 5V signal from the arduino will actually trigger the button and make the 3DS think it's been pressed?
Thanks and feel free to mock my ignorance, I just need a little help.

