RetroPie forum home
    • Recent
    • Tags
    • Popular
    • Home
    • Docs
    • Register
    • Login

    How to programm game interruption with GPIO pins (SNES Retropie mod)

    Scheduled Pinned Locked Moved Ideas and Development
    gpiogameinterruptendbutton
    5 Posts 4 Posters 1.4k 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.
    • zulorumXZ
      zulorumX
      last edited by zulorumX


      Greetings from
      zulorumX :)

      1 Reply Last reply Reply Quote 0
      • Capt_MorganCreekC
        Capt_MorganCreek
        last edited by

        Hey!

        Please have a look into this thread:

        https://retropie.org.uk/forum/topic/7126/want-to-use-usb-controllers-and-gpio-buttons-for-hotkeys

        I had the same question and came up with retrogame by adafruit.

        RetroPie64 - My Nintendo 64 conversion: https://retropie.org.uk/forum/post/55927

        1 Reply Last reply Reply Quote 0
        • zulorumXZ
          zulorumX
          last edited by zulorumX


          Greetings from
          zulorumX :)

          HexH 1 Reply Last reply Reply Quote 0
          • HexH
            Hex @zulorumX
            last edited by Hex

            @zulorumx said in How to programm game interruption with GPIO pins (SNES Retropie mod):

            Hey everybody,
            I found a better solution for me which is additional free and easy to make.

            You only have to make a little python script which starts at boot and reboot.
            This script only have to detect the button and then it have to kill all emulators like this:

            import os /you have to import this to execute console commands via python

            os.system("killall retroarch")
            os.system("killall dosbox")
            os.system("killall atari800") /for the lr-Stella emulator(kills also the ATARI5200)
            os.system("killall uae4arm")
            os.system("killall scummvm")

            IF ANYBODY WANT I CAN ADD HERE A DOWNLOAD LINK WITH MY SCRIPT WHICH SUPPORTS ALSO THE RESET BUTTON FROM THE SNES

            DOWNLOAD: ~

            This is one of the most inefficient ways to kill emulators. You might want to reconsider as gpio buttons are prone to false positive clicks. You might get random Emukills due to this.

            Sent from 20,000 leagues under the sea.

            Powersaver Emulation station : https://github.com/hex007/EmulationStation
            ES dev script : https://github.com/hex007/es-dev/blob/master/es-tests.sh

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

              @Hex @zulorumX
              Take a look around here In last posting @meleu and me did resolve some problems with shutdown and escape emulators by GPIO signal.

              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.