Page 1 of 1
So close to finished with my first build
Posted: Mon Oct 23, 2017 11:24 am
by sixteenbit
... but I'm looking for some help.
I'm using helder's AIO and i'm wiring buttons to GPIO following this
http://sudomod.com/forum/viewtopic.php?t=57.

- IMG_0167.JPG (2.6 MiB) Viewed 7748 times
Once I boot into ES i'm getting No Gamepads Detected. Correct me if I'm wrong but nothing has to be programmed at this point for me to be able to press buttons to then map within ES right? Also, do I need L/R wired up yet for all buttons to work?
I feel like if I can get this part working I should be able to finish this up. Any help is much appreciated.
Re: So close to finished with my first build
Posted: Mon Oct 23, 2017 12:06 pm
by VeteranGamer
sixteenbit wrote: ↑Mon Oct 23, 2017 11:24 am
... but I'm looking for some help.
I'm using helder's AIO and i'm wiring buttons to GPIO following this
http://sudomod.com/forum/viewtopic.php?t=57.
IMG_0167.JPG
Once I boot into ES i'm getting No Gamepads Detected. Correct me if I'm wrong but nothing has to be programmed at this point for me to be able to press buttons to then map within ES right? Also, do I need L/R wired up yet for all buttons to work?
I feel like if I can get this part working I should be able to finish this up. Any help is much appreciated.
if your buttons are wired to GPIO....
your button pcb isnt recognised yet....
it will need to be "programmed"
then you need to boot up with a keyboard connected, you'll first map the keys with the keyboard
(try to map these as those in your retrogame.config, this will save you any headaches once retrogame is installed)....
then you'll need to install retrogame....
following the instruction found in the post you have linked........
if you run into any issue, just ask....
.
Re: So close to finished with my first build
Posted: Mon Oct 23, 2017 12:11 pm
by sixteenbit
VeteranGamer wrote: ↑Mon Oct 23, 2017 12:06 pm
if your buttons are wired to GPIO....
then you need to boot up with a keyboard connected, you'll first map the keys with the keyboard....
then you'll need to install retrogame....
following the instruction found in the post you have linked........
.
Son of a...
I knew it had to be something stupid like this. I misinterpreted that thread. I was thinking I would be able to actually map the buttons on first boot, as in press buttons on gamepad. Thanks for pointing that out. I'll give that a try.
Re: So close to finished with my first build
Posted: Mon Oct 23, 2017 12:14 pm
by VeteranGamer
sixteenbit wrote: ↑Mon Oct 23, 2017 12:11 pm
VeteranGamer wrote: ↑Mon Oct 23, 2017 12:06 pm
if your buttons are wired to GPIO....
then you need to boot up with a keyboard connected, you'll first map the keys with the keyboard....
then you'll need to install retrogame....
following the instruction found in the post you have linked........
.
Son of a...
I knew it had to be something stupid like this. I misinterpreted that thread. I was thinking I would be able to actually map the buttons on first boot, as in press buttons on gamepad. Thanks for pointing that out. I'll give that a try.
no probs, it happens to the best of us.....
another thing....
your also gonna need to be hook up to the internet (i think you rocking a Pi Zero) so a wifi dongle will also be needed.....
edit: i see its Pi Zero W, not needed.....
.
Re: So close to finished with my first build
Posted: Mon Oct 23, 2017 1:19 pm
by sixteenbit
Ok got keyboard hooked up and wifi connected. Copied retrogame to /home/pi/Adafruit-Retrogame and ran the following
Got the following:
Code: Select all
make: Nothing to be done for 'retrogame'.
I'm getting a syntax error with the following:
Any ideas?

- Screen Shot 2017-10-23 at 3.16.24 PM.png (336.25 KiB) Viewed 7720 times
Edit:
Looks like i needed to save the original file as retrogame.c then when you run make retrogame it makes the executable.
Re: So close to finished with my first build
Posted: Mon Oct 23, 2017 1:30 pm
by Codemaster123
sixteenbit wrote: ↑Mon Oct 23, 2017 1:19 pm
Ok got keyboard hooked up and wifi connected. Copied retrogame to /home/pi/Adafruit-Retrogame and ran the following
Got the following:
Code: Select all
make: Nothing to be done for 'retrogame'.
I'm getting a syntax error with the following:
Any ideas?
Screen Shot 2017-10-23 at 3.16.24 PM.png
try this i only use this method
cd
curl -O
https://raw.githubusercontent.com/adafr ... trogame.sh
sudo bash retrogame.sh
https://learn.adafruit.com/retro-gaming ... s-software
.
Re: So close to finished with my first build
Posted: Mon Oct 23, 2017 1:33 pm
by sixteenbit
Thanks @Codemaster123 but it looks like i have it working. So I'm gonna roll with it for now. If anything screws up I'll try the method you listed.
Holy cow, i'm so happy to get past this hurdle. Now onto hooking up battery, power switch, and audio!
Re: So close to finished with my first build
Posted: Tue Oct 24, 2017 11:32 am
by sixteenbit
Buttons are working and I've moved onto wiring up the speakers. I followed this diagram:

- IMG_0170.JPG (2.04 MiB) Viewed 7690 times
I'm hearing noise in the speaker but not audio.
Re: So close to finished with my first build
Posted: Tue Oct 24, 2017 12:31 pm
by VeteranGamer
sixteenbit wrote: ↑Tue Oct 24, 2017 11:32 am
Buttons are working and I've moved onto wiring up the speakers. I followed this diagram:
IMG_0170.JPG
I'm hearing noise in the speaker but not audio.
have you enable pwm audio in the config.txt
dtoverlay=pwm-2chan,pin=18,func=2,pin2=13,func2=4
disable_audio_dither=1
.
Re: So close to finished with my first build
Posted: Tue Oct 24, 2017 1:20 pm
by sixteenbit
Again, thanks VeteranGamer, that was it.
Once I get batter and power switch finished i'll be done!