adafruit / Adafruit-Retrogame

Raspberry Pi GPIO-to-virtual-keyboard utility for classic game emulators
https://learn.adafruit.com/retro-gaming-with-raspberry-pi
355 stars 123 forks source link

i2s audio dac blocked by retrogame #72

Closed newhinton closed 2 years ago

newhinton commented 2 years ago

If one tries to use the MAX98357a with retrogame for a pigrrl-project, the sound will not work if the retrogame-utility is started.

This is in part expected, especially since the shoulder-button for the pg2 uses the pin 12 wich is the left shoulder button, but i would like to reassign this button.

I have tried disabling pin 12 (and to be save 19) in the config, but that does not "free" the pins and audio still does not work.

How do i use this dac with retrogame?

newhinton commented 2 years ago

I cut the traces to the DPAD-Right Button and the Y Button. (On the PiGRRL 2.0 Custom Gamepad PCB)

Then i wired those buttons to GPIO2 and GPIO3 which were unused and changed the retrogame.cfg.

Now i have GPIO 18,19 and 21 free for the DAC.