How to change a buttons corresponding GPIO point
How to change a buttons corresponding GPIO point
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
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
- 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
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.
Re: How to change a buttons corresponding GPIO point
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.
- 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
This indicates there is probably something physically amiss with your setup. Can you post pictures?
Re: How to change a buttons corresponding GPIO point
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
- 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
If you're trying to use GPIO #12 for your A button it looks like you are using the wrong pinhole:
The one you want is on the outside, 5 holes up from the bottom (meaning the opposite side of the SD card).
The one you want is on the outside, 5 holes up from the bottom (meaning the opposite side of the SD card).
Re: How to change a buttons corresponding GPIO point
I think there seems to be a confusion with GPIO 12 and physical pin 12. Retrogame uses BCM numbering for the GPIO.
- 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
Yep I just noticed that - looks like you have it connected to physical pin 12 in stead of GPIO pin 12. Confusing, I know.
Who is online
Users browsing this forum: No registered users and 1 guest