Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Documentation on how to install retrogame #8

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 40 additions & 0 deletions Documentation.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
Documentaion on How to install Retrogame into Retropie with GPIO buttons.

Boot up Retrogame, preferrably with SSH enabled, so you access your pi remotely. This can be done with ethernet or wifi, depending on your situation.

First if your 'Adafruit-Retrogame' file has the 'gamera.c' file you need to type:
sudo apt-get install ncurses-dev libexpat1-dev - obviously you will need an internet connection.

if you don't have 'gamera.c' just skip that step.

first unzip files on a PC/Mac/Linux machine (trust me it's easier), pull the whole 'Adafruit-Retrogame' over to you Pi. in the /pi/home/ folder.

Then edit the retrogame.c file to correspond to your button/gpio layout.

Ctl-X, Y, enter. This exits and saves it. You can also edit the file on your computer. Then move the new file over to replace the old one.

then, type: sudo make.

wait for the build to finish.

next type: sudo modprobe uinput. this gets the uinput kernel.

to make this persistent (run at boot), (with quotations) type: sudo sh -c 'echo uinput >> /etc/modules'

to test, type: sudo ./retrogame

make sure all of your buttons work, plus each direction on joystick.

Then ctl-c to quit the test.

type: sudo nano /etc/rc.local

Before the final “exit 0” line, insert this line: /home/pi/Adafruit-Retrogame/retrogame &

Next type: sudo nano /etc/udev/rules.d/10-retrogame.rules

Add this line: SUBSYSTEM=="input", ATTRS{name}=="retrogame", ENV{ID_INPUT_KEYBOARD}="1"

if the line is already there don't worry about it.

type: sudo reboot