PWM Audio Works but then button presses are ignored or cause a system pause

Having trouble with your GBZ build? Ask your questions here!
Post Reply
kylegp
Posts: 3
Joined: Sat Jan 22, 2022 5:52 am

PWM Audio Works but then button presses are ignored or cause a system pause

Post by kylegp » Sat Jan 22, 2022 6:02 am

I have a really strange issue that I can't figure out or find any information anywhere.

I have a Gameboy Zero consisting of a TinkerBOY Controller V2.0.1 and the screen seen here: https://www.tinkerboy.xyz/wiring-guide- ... th-5v-mod/

I'm also using a similar boost converter and have verified it's outputting a stable 5V to the tinkerboy board. All grounds are connected.

Here's the issue...

Basically, if I don't connect PWM audio physically, everything works perfectly. All GPIO buttons work, games run fine.

If I connect GPIO13 to the TinkerBOY, I'll get audio either from the speaker I've attached or the headphone jack, but then the GPIO buttons don't respond or they only respond 1 out of 10 times.

When running a game, when you press any of the GPIO buttons, the game and audio pauses for as long as the button is held. Any of the GPIO buttons.

If you have a USB keyboard connected, all runs fine that way.

So I thought, okay, GPIO conflict between PWM audio on GPIO 13 and something else? That's the thing, no... Nothing is conflicting from what I can see.

In the config, I'm using:
dtoverlay=pwm-2chan,pin=18,func=2,pin2=13,func2=4

and wiring per these links:
https://www.tinkerboy.xyz/wiring-guide- ... er-v2-0-1/
https://www.tinkerboy.xyz/gpio-button-g ... v2-0-v1-1/

and I'm using the image from here:
https://www.tinkerboy.xyz/retropie-sdca ... r-support/

And again, if I either disconnect the audio wire from GPIO 13 or disable audio in software but leave the physical connection, all buttons and games work fine.

Why wouldn't everything be working at the same time? I'm losing my mind.

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest