Alternate GBZ GPIO inquiry

Having trouble with your GBZ build? Ask your questions here!
Golddeenoh
Posts: 27
Joined: Tue Dec 05, 2017 12:29 pm
Has thanked: 9 times
Been thanked: 1 time

Re: Alternate GBZ GPIO inquiry

Post by Golddeenoh » Wed Dec 13, 2017 12:45 pm

Somehow, i selected another image that had a shorter list for the inputs when PITFT is detected and edited that list to add the additonal button inputs and align it with my gpio, expand file system, update retropie, reboot and boom inputs are working, now to sort out the pwm for pin 12/GPIO 18. only doing mono sound so i migh have to remove part of the code line to keep it from interfering with the input (GPIO13 is an input).

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

Re: Alternate GBZ GPIO inquiry

Post by rodocop » Wed Dec 13, 2017 2:04 pm

Golddeenoh wrote:
Wed Dec 13, 2017 12:45 pm
Somehow, i selected another image that had a shorter list for the inputs when PITFT is detected and edited that list to add the additonal button inputs and align it with my gpio, expand file system, update retropie, reboot and boom inputs are working, now to sort out the pwm for pin 12/GPIO 18. only doing mono sound so i migh have to remove part of the code line to keep it from interfering with the input (GPIO13 is an input).
if you're only doing mono then use GPIO18 (NOT physical pin 18), and add this to the config.txt:

dtoverlay=pwm,pin=18,func=2
disable_audio_dither=1

Golddeenoh
Posts: 27
Joined: Tue Dec 05, 2017 12:29 pm
Has thanked: 9 times
Been thanked: 1 time

Re: Alternate GBZ GPIO inquiry

Post by Golddeenoh » Fri Dec 15, 2017 2:17 pm

Managed to crash it after adding PWM code in to it and had to start over, it wouldn't boot up or load the display.

Golddeenoh
Posts: 27
Joined: Tue Dec 05, 2017 12:29 pm
Has thanked: 9 times
Been thanked: 1 time

Re: Alternate GBZ GPIO inquiry

Post by Golddeenoh » Fri Dec 15, 2017 3:00 pm

I do manage to get a crackle when the GBZ is turned on so i'm getting something to the Speakers.

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

Re: Alternate GBZ GPIO inquiry

Post by rodocop » Sun Dec 17, 2017 8:10 am

Make sure you max the volume in retropie (should be an audio mixer in the retropie menu.

Also, that adafruit amp has a small pot on it that can be adjusted with a screw driver, make sure to adjust that as well.

Without seeing all the audio wiring I can't give much more advice

Golddeenoh
Posts: 27
Joined: Tue Dec 05, 2017 12:29 pm
Has thanked: 9 times
Been thanked: 1 time

Re: Alternate GBZ GPIO inquiry

Post by Golddeenoh » Tue Dec 19, 2017 11:47 am

power supply went out on this now and also my other project i had started. fun times.

Golddeenoh
Posts: 27
Joined: Tue Dec 05, 2017 12:29 pm
Has thanked: 9 times
Been thanked: 1 time

Re: Alternate GBZ GPIO inquiry

Post by Golddeenoh » Thu Jan 04, 2018 7:12 pm

The TFT uses GPIO18 for the Screen function, might be why I Don't get Audio. I'll take what I learned here and use it for further projects. (I currently have several in the works)

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest