How to change a buttons corresponding GPIO point

Having trouble with your mintyPi build? Post your questions here!
Post Reply
Okay
Posts: 14
Joined: Sun Mar 12, 2017 5:09 am
Has thanked: 4 times
Been thanked: 2 times

How to change a buttons corresponding GPIO point

Post by Okay » Mon Jul 24, 2017 12:43 pm

Hello again,

since my last screw up, all has been going well, the screen works etc however one issue I've had is that the A button is not working. I soldered a wire directly from the A test pad to the corresponding GPIO pin but still when I'm in retropie I'm still unable to use the A button. I even went as far as to check the continuity from the point on the GPIO all the way to the conductive pad on the other side of the board and its completely fine. This leads me to believe that I must have broken a trace on the pi its self during the previous screw up:(http://www.sudomod.com/forum/viewtopic.php?f=34&t=3457). As a result of this, I think that using one of the unused GPIO pins (for example GPIO pins 25-28) for the A button instead would be an 'easy' fix but I have no idea how to do that.

Please help :?

Thanks

User avatar
wermy
Site Admin
Posts: 1346
Joined: Tue May 03, 2016 8:51 pm
Has thanked: 620 times
Been thanked: 1322 times
Contact:

Re: How to change a buttons corresponding GPIO point

Post by wermy » Mon Jul 24, 2017 1:41 pm

Sure, if you look at /boot/retrogame.cfg, you can change which GPIO pin the A button is assigned to. You can either edit it via SSH or pop the SD card into a computer and the /boot/ partition should be available.
ImageImageImageImage

Okay
Posts: 14
Joined: Sun Mar 12, 2017 5:09 am
Has thanked: 4 times
Been thanked: 2 times

Re: How to change a buttons corresponding GPIO point

Post by Okay » Mon Jul 24, 2017 4:31 pm

I tried changing it to GPIO 12 which appears to be empty but still no joy unfortunately. Heres a picture of the config just in case you can spot anything obvious I am doing wrong.

Image

User avatar
wermy
Site Admin
Posts: 1346
Joined: Tue May 03, 2016 8:51 pm
Has thanked: 620 times
Been thanked: 1322 times
Contact:

Re: How to change a buttons corresponding GPIO point

Post by wermy » Mon Jul 24, 2017 4:44 pm

This indicates there is probably something physically amiss with your setup. Can you post pictures?
ImageImageImageImage

Okay
Posts: 14
Joined: Sun Mar 12, 2017 5:09 am
Has thanked: 4 times
Been thanked: 2 times

Re: How to change a buttons corresponding GPIO point

Post by Okay » Mon Jul 24, 2017 5:30 pm

Image
Image

The black wire seen in picture 2 is ground (I had a hard time getting a good connection so I direct soldered it)
The red wire is for the A button
The green wire is for the X button

I know the soldering and the wiring is not great but this is just for testing until I know it all works :)

User avatar
wermy
Site Admin
Posts: 1346
Joined: Tue May 03, 2016 8:51 pm
Has thanked: 620 times
Been thanked: 1322 times
Contact:

Re: How to change a buttons corresponding GPIO point

Post by wermy » Mon Jul 24, 2017 7:39 pm

If you're trying to use GPIO #12 for your A button it looks like you are using the wrong pinhole:

Image

The one you want is on the outside, 5 holes up from the bottom (meaning the opposite side of the SD card).
ImageImageImageImage

User avatar
HoolyHoo
Posts: 766
Joined: Sat Jul 09, 2016 9:34 pm
Has thanked: 206 times
Been thanked: 741 times

Re: How to change a buttons corresponding GPIO point

Post by HoolyHoo » Mon Jul 24, 2017 7:55 pm

I think there seems to be a confusion with GPIO 12 and physical pin 12. Retrogame uses BCM numbering for the GPIO.

User avatar
wermy
Site Admin
Posts: 1346
Joined: Tue May 03, 2016 8:51 pm
Has thanked: 620 times
Been thanked: 1322 times
Contact:

Re: How to change a buttons corresponding GPIO point

Post by wermy » Mon Jul 24, 2017 7:57 pm

Yep I just noticed that - looks like you have it connected to physical pin 12 in stead of GPIO pin 12. Confusing, I know. :)
ImageImageImageImage

Okay
Posts: 14
Joined: Sun Mar 12, 2017 5:09 am
Has thanked: 4 times
Been thanked: 2 times

Re: How to change a buttons corresponding GPIO point

Post by Okay » Tue Jul 25, 2017 4:37 am

Thanks... it worked. Sorry

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest