Help with coding

Having trouble with your GBZ build? Ask your questions here!
Post Reply
kylepiboy
Posts: 27
Joined: Tue Oct 04, 2016 3:15 pm
Has thanked: 1 time

Help with coding

Post by kylepiboy » Thu Mar 07, 2019 11:36 am

Hey all, I’m trying to edit the coding for RetroPie but I’m at a loss for how to do so. Is there a post in this already? Is there a program I need to download to edit it? Any and all help would be greatly appreciated.

User avatar
infinitLoop
Posts: 536
Joined: Mon Dec 24, 2018 11:46 am
Location: Portland, OR
Has thanked: 222 times
Been thanked: 199 times
Contact:

Re: Help with coding

Post by infinitLoop » Thu Mar 07, 2019 11:57 am

what exactly do you mean by "edit the coding"? are you wanting to change the retropie program in some way? the source is on github, but you're probably better off asking specific questions in a retropie forum

kylepiboy
Posts: 27
Joined: Tue Oct 04, 2016 3:15 pm
Has thanked: 1 time

Re: Help with coding

Post by kylepiboy » Thu Mar 07, 2019 1:12 pm

I’m wanting to program the GPIO to additional buttons, but don’t understand how to do that. But I will go to that forum and ask there.

User avatar
infinitLoop
Posts: 536
Joined: Mon Dec 24, 2018 11:46 am
Location: Portland, OR
Has thanked: 222 times
Been thanked: 199 times
Contact:

Re: Help with coding

Post by infinitLoop » Thu Mar 07, 2019 1:38 pm

kylepiboy wrote:
Thu Mar 07, 2019 1:12 pm
I’m wanting to program the GPIO to additional buttons, but don’t understand how to do that. But I will go to that forum and ask there.
oh, that's not retropie then. it's whatever you are using for the button mapping - retrogame maybe? it's in a text file that you would edit and map the pins to other keyboard keys, or what have you...

retrogame instructions:

https://learn.adafruit.com/retro-gaming ... s-software

tl;dr - you use "sudo nano /boot/retrogame.cfg"

User avatar
infinitLoop
Posts: 536
Joined: Mon Dec 24, 2018 11:46 am
Location: Portland, OR
Has thanked: 222 times
Been thanked: 199 times
Contact:

Re: Help with coding

Post by infinitLoop » Thu Mar 07, 2019 1:40 pm

unless you mean, like, additional buttons beyond the ones you can map to a controller in emulationstation... then that would be much harder... and i'm not sure why you would need to.

kylepiboy
Posts: 27
Joined: Tue Oct 04, 2016 3:15 pm
Has thanked: 1 time

Re: Help with coding

Post by kylepiboy » Thu Mar 07, 2019 3:57 pm

I’m not adding additional controls. Just want to wire in a psp joystick and I wanted to hard wire it to my pie with my other controls. Thank you for the link. :D

User avatar
rodocop
Posts: 1723
Joined: Mon Aug 22, 2016 3:14 pm
Location: Saskatchewan
Has thanked: 606 times
Been thanked: 608 times

Re: Help with coding

Post by rodocop » Thu Mar 07, 2019 4:03 pm

Pretty sure you can't just add a psp joystick. Pi can't do anything with an analog joystick (gpios are all digital, not analog). You'll need a teensy or something similar.

kylepiboy
Posts: 27
Joined: Tue Oct 04, 2016 3:15 pm
Has thanked: 1 time

Re: Help with coding

Post by kylepiboy » Thu Mar 07, 2019 5:04 pm

Okay, didn’t know that. I’ll have to pick up a teensy than and look up some how to code it/program it.
Thank you!

User avatar
tinkerBOY
Posts: 710
Joined: Tue May 30, 2017 4:00 am
Has thanked: 294 times
Been thanked: 206 times

Re: Help with coding

Post by tinkerBOY » Sat Mar 09, 2019 4:15 pm

kylepiboy wrote:
Thu Mar 07, 2019 5:04 pm
Okay, didn’t know that. I’ll have to pick up a teensy than and look up some how to code it/program it.
Thank you!
A Pro Micro is a better choice than a teensy. It's cheaper and very common.
New! tinkerBOY PowerSwitch v1.0 with Safe Shutdown
Game Boy Zero Controllers available @ tinkerBOY.xyz * Support
tinkerBOY Controller v3.0 - built-in usb controller, usb audio, and usb hub
tinkerBOY Controller v2.0 - GPIO buttons and builtin PWM Audio and Amplifier
tinkerBOY Controller v1.1 - simple pcb button
* DPI Adapter - better display for GBZ
* keyboard converters - IBM XT/AT Soarer's Converter | ADB to USB Converter

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest