GPIO pins for input

Having trouble with your GBZ build? Ask your questions here!
Post Reply
jakejm79
Posts: 129
Joined: Tue Oct 10, 2017 3:40 pm
Has thanked: 1 time
Been thanked: 33 times

GPIO pins for input

Post by jakejm79 » Thu Jan 11, 2018 7:41 pm

Are there any limitations on the actual pin numbers we can use with a common ground board, obviously 5V, 3.3V and Ground cant be used (so that's physical pin 1 2 4 6 9 14 17 20 25 30 34 and 39) but I see ones labeled SDA, SDL, GPCLK, etc I assume if configured with Retrogame to use those pins those functions wouldn't be used (so as long as it's not something I need - for audio or safe shutdown) I'm free to use whichever pins I want or will I run into conflicts?

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

Re: GPIO pins for input

Post by rodocop » Thu Jan 11, 2018 9:03 pm

Skip pwm0 or pwm1 (18 and 13) if you plan to do pwm audio. Skip the spi pins too. If you don't plan to use an spi screen you can probably use those too.

https://i.imgur.com/dh9kiPi.jpg

I always just use the pins in this guide:

https://sudomod.com/forum/viewtopic.php?t=57

jakejm79
Posts: 129
Joined: Tue Oct 10, 2017 3:40 pm
Has thanked: 1 time
Been thanked: 33 times

Re: GPIO pins for input

Post by jakejm79 » Fri Jan 12, 2018 10:08 am

Thank you, I normally use I2S for audio, so that excludes 18, 19 and 21. I did do some searching and looks like they are all fair game unless you are actively using them for something else (audio, screen, serial connection) or power/ground. Just trying to find about 11 pins that run just about in order from physical pin 6 or so. Looks like I should just about be able to do that if I jump back and forth between the 3.3 and 5V columns as I work my way down/over.
Thanks for the help.

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

Re: GPIO pins for input

Post by rodocop » Fri Jan 12, 2018 10:26 am

Ah. I've never used I2S audio, didn't think about Those. Regardless, lots of pins to choose from!

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest