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

    help with reset button on mega drive mk1 case

    Scheduled Pinned Locked Moved Help and Support
    reset buttonmega drivebuttons gpiogpio pingpio exit roms
    5 Posts 3 Posters 473 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.
    • C
      cockneynutjob
      last edited by

      Hello,
      I know this has been answered as ive read a few other posts but im still not sure and was wondering if someone could tell me how to do it in a simple way, im not a noob with retropie/linux but this one has got me, so what i want to be able to do is connect a button to gpio pin 5 and 6, and when i press the button it quits out of the emulator im playing back to emulation station, now i know theres a script out there to do this can someone point me in the right direction and how to enter it in the retropie terminal, sorry to be a pain just need some help.
      Thank you all

      C 1 Reply Last reply Reply Quote 0
      • C
        cockneynutjob @cockneynutjob
        last edited by

        @cockneynutjob anybody?

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

          Try using @cyperghost's script from https://github.com/crcerror/ES-generic-shutdown, if you run it with the --closeemu parameter it will stop the current running emulator.

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

            @cockneynutjob Yes multi_switch.sh is very flexible. As default if you connect a switch to PIN 5 and 6 it'll powerdown the whole system but you can easily exchange behaviour with some code edit.

            1 Reply Last reply Reply Quote 0
            • C
              cockneynutjob
              last edited by

              Thank you very much to you both sorted

              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.