RetroPie forum home
    • Recent
    • Tags
    • Popular
    • Home
    • Docs
    • Register
    • Login
    Please do not post a support request without first reading and following the advice in https://retropie.org.uk/forum/topic/3/read-this-first

    need more GPIO pin

    Scheduled Pinned Locked Moved Help and Support
    gpio controllergpio pin
    8 Posts 3 Posters 893 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • popfaignantP
      popfaignant
      last edited by

      Raspberry pi3 b+
      Alim 5v 5A
      Retropie 4.5.3

      Hello 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 ?

      cyperghostC 1 Reply Last reply Reply Quote 0
      • cyperghostC
        cyperghost
        last edited by cyperghost

        Search for MCP23017 or MCP23008 this expands your GPIOs with a I2C component and costs are very low.

        popfaignantP 1 Reply Last reply Reply Quote 1
        • popfaignantP
          popfaignant @cyperghost
          last edited by

          @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.

          1 Reply Last reply Reply Quote 0
          • cyperghostC
            cyperghost @popfaignant
            last edited by

            @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 add

            dtparam=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

            popfaignantP 2 Replies Last reply Reply Quote 0
            • popfaignantP
              popfaignant @cyperghost
              last edited by

              @cyperghost oh great, I'll try !

              1 Reply Last reply Reply Quote 0
              • popfaignantP
                popfaignant @cyperghost
                last edited by

                @cyperghost where is the config.txt please ?

                mituM 1 Reply Last reply Reply Quote 0
                • mituM
                  mitu Global Moderator @popfaignant
                  last edited by

                  @popfaignant Put the SD card in your PC, the config.txt file should be on the BOOT partition. Or, if you're on the Raspbian system, in the /boot folder.

                  popfaignantP 1 Reply Last reply Reply Quote 0
                  • popfaignantP
                    popfaignant @mitu
                    last edited by

                    @mitu sorry, it doesn't work 😢
                    Thanks

                    1 Reply Last reply Reply Quote 0
                    • First post
                      Last post

                    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.