need more GPIO pin
-
Raspberry pi3 b+
Alim 5v 5A
Retropie 4.5.3Hello everybody, I've made a bartel with joystick connected to the GPIO whith 12 buttons (⬆️⬇️⬅️➡️, start, select ,A, B, X, Y, L, R).
So my problem is that i want another button for the Hotkey. I'seen on this forum that the pin 3 and 5 aren't usable and i don't know where i can connect my hk.
I don't want to use select button for many reasons.
Do you have an answer ? -
Search for MCP23017 or MCP23008 this expands your GPIOs with a I2C component and costs are very low.
-
@cyperghost thanks for your quick answer but on my gpio, just 12 pin are connected. It's to bad to have some pins free and can't connect my hk on these. I expected an other solution.
-
@popfaignant (Physical) Pin 3 and 5 are I2C communication pins. Imho opinion you can use them. Usually Pin5 and Pin6 are used for a cheap power button solution.
So Pin5 works for sure.
You can adddtparam=i2c_arm=off dtparam=i2s=off
to your config.txt - this will disable I2C and the Pin3 and 5 should be available as GPIO 2 and GPIO 3
-
@cyperghost oh great, I'll try !
-
@cyperghost where is the config.txt please ?
-
@popfaignant Put the SD card in your PC, the
config.txt
file should be on theBOOT
partition. Or, if you're on the Raspbian system, in the/boot
folder. -
@mitu sorry, it doesn't work 😢
Thanks
Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.
Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.