Advertisement
Guest User

RaspberryPi 2 Model B GPIO Joystick Button Driver Install

a guest
Apr 26th, 2016
566
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.83 KB | None | 0 0
  1. • Hook up a WiFi adapter and USB keyboard to the Raspberry Pi
  2. • Power on the system and map keyboard buttons to the controls
  3. • Navigate to the RetroPie icon on the homescreen of EmulationStation and select the WiFi option. Follow the prompts to connect to your network
  4. • Once complete, and you're returned to Emulation Station hit F4 on the keyboard to return to Terminal
  5. • Make a folder by typing command mkdir mkjoystick
  6. • Go to the directory by typing cd mkjoystick
  7. • Download the drivers by typing
  8. • wget https://github.com/digitalLumberjack/mk_arcade_joystick_rpi/releases/download/v0.1.4/install.sh
  9. • After it downloads, update your system by typing sudo sh ./install.sh updatesystem
  10. • This may take awhile depending on your network speed
  11. • Reboot your system by typing sudo reboot
  12. • Once again, exit emulation station and navigate to the mkjoystick directory by typing cd mkjoystick
  13. • To install the drivers type sudo sh ./install.sh
  14. • Once finished, reboot by typing sudo reboot
  15. • Exit EmulationStation by hitting F4 and open modules configuration file by typing sudo nano /etc/modules
  16. • Add line mk_arcade_joystick_rpi
  17. • Hit Control + o and then enter to write out then Control + x to exit
  18. • Next create the config file by typing sudo nano /etc/modprobe.d/mk_arcade_joystick.conf
  19. • Add text: options mk_arcade_joystick_rpi map=1
  20. • Hit Control + o and then enter to save and then Control + x to exit
  21. • Reboot your system by typing sudo reboot
  22. • Hit Start (whichever keyboard button you mapped the Start button to) and go to "Configure Input" and press whichever key you mapped as A. It should say "1 Gamepad Detected".
  23. • Map your buttons, quit by pressing F4, and reboot by typing sudo reboot.If everything is done correctly, you should now have the driver auto-starting and your GPIO buttons working
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement