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

    Gpio button mapping

    Scheduled Pinned Locked Moved Help and Support
    retropie gpiogpiobutton mappingcontrol
    3 Posts 2 Posters 599 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.
    • P
      pvstlife
      last edited by

      I’ve been searching for a few days and haven’t found a solid answer so I’m sorry if this question has been asked, and I just haven’t found it.

      My set up:
      -pi zero W
      -Uniker 2.8” pi zero touch screen
      -RetroPie 4.7
      -2 way analog thumb stick
      -McP3008 Converter

      • 8 momentary switches

      So I have the screen soldered on and working, and I have the buttons, mcp3008, and thumbstick all wired to the pi gpio.
      I’m trying to map the thumbstick and buttons inside RetroPie to no avail. All of the button mapping things I’ve come across use gpio pins I’ve had to alter due to screen issues, so I haven’t been able to use other peoples mapping schemes.
      Is there ANY way for me to set up my own gpio mapping to use the already soldered pins as buttons in RetroPie. All of the controls I’ve soldered are on open gpio pins.

      Any help is greatly appreciated!! Sorry if this is worded strange, I can answer any questions about my set up/problems.

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

        Try using GPIOnext to map your GPIO switches, it has a mapping utility to help. For the converter, I think you'll need to set-up a script to read the MCP data and translate them into a joystick input - but I don't think GPIOnext includes that.

        P 1 Reply Last reply Reply Quote 0
        • P
          pvstlife @mitu
          last edited by

          @mitu
          When I tried using gpionext I kept being met with error messages. I ended up just getting a few different parts to work with the super pi girl drivers. Still, thank you for the help.

          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.