Posted on

RetroPie SDCard Image with Built-in GPIO Controller Support

Below is a modified copy of RetroPie 4.3 image for the Raspberry Pi Zero with built-in support for setting up GPIO buttons using Adafruit’s Retrogame utility program. I have tested it and have been using it for my Game Boy Zero builds.

Raspberry Pi Zero – RetroPie_4.3_GPIO_PiZero.img.7z(578Mb)

Just edit the file /boot/retrogame.cfg to match your GPIO configuration.

Or use the following GPIO soldering setup:

 UP  –  GPIO04
 DOWN  –  GPIO17
 LEFT  –  GPIO27
 RIGHT  –  GPIO22
 A  –  GPIO05
 B  –  GPIO06
 X  –  GPIO19
 Y  –  GPIO26
 SELECT  –  GPIO20
 START  –  GPIO16
 L1  –  GPIO12
 R1  –  GPIO23

PWM audio is configured on GPIO18 but you can edit the following lines in the /boot/config.txt to either enable 1 or 2 audio channel.

# 2 channel audio
dtoverlay=pwm-2chan,pin=18,func=2,pin2=13,func2=4

# 1 channel audio
dtoverlay=pwm,pin=18,func=2

Update: Image file updated to 7z format to shrink the size. Most zip programs can extract it just fine. Otherwise just download 7z.

2 thoughts on “RetroPie SDCard Image with Built-in GPIO Controller Support

  1. […] can download a copy of RetroPie 4.3 image with the GPIO program already installed and follow the gpio button […]

  2. […] Wiring the Game Boy Controller v2.0 to the Pi Zero or Pi 3’s GPIO pins is the simplest way to configure controller inputs for the Game Boy Zero/3 without any additional component. You can use the following diagram to solder the button inputs to the Pi and download a copy of RetroPie with the GPIO program already pre-installed. […]

Leave a Reply

Your email address will not be published. Required fields are marked *