Skip to content

kuleshovdv/reset_button

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Reset Button for RetroPie

This script controls the pressing of the Reset Button on your Rasblery Pi case like NESPi. One short press stops running game and returns you to Emulationstation reciprocally Hotkey+Select on your gamepad . A long press restarts the system.

Connect reset button to your GP23 and Ground on Raspberry Pi GPIO connector

The Reset Button normally must be open. Connect one wire to GP23 another to the ground.

Installation

  1. Close Emulationstation and go to command line or connect to your Raspberry Pi via ssh

  2. Install git if you haven't done it before sudo apt install git

  3. Download this script, goto script folder and make it runnable

git clone https://github.com/kuleshovdv/reset_button.git
cd reset_button
chmod +x reset_button.py
  1. If you connect your Reset Button not to GP23 edit reset_button.py file nano reset_buton.py and change GPIO chanel for Reset Button in python script:
# GPIO chanel for Reset Button
# By default is GP23
chanel = {put your GPIO channel here}

Press Ctrl-O for save changes and Ctrl-X for close editor

  1. Copy reset_button.service into /etc/systemd/system folder sudo cp reset_button.service /etc/systemd/system/

  2. Enable and start service

systemctl daemon-reload
systemctl enable reset_button
systemctl start reset_button
  1. Enjoy

About

Reset Button script for RetroPie

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages