Convert Badge into a RetroPie¶
You will need:¶
- SaintCon 2017 Badge
- Keyboard
- Mini HDMI to HDMI
If you don't have any USB-OTG cables or HDMI adapters use the following instructions to access the Pi via USB from another computer and share the wifi. https://cdn-learn.adafruit.com/downloads/pdf/turning-your-raspberry-pi-zero-into-a-usb-gadget.pdf
Download RetroPie¶
Download Retropie from here
Badges are a Raspberry Pi 0, you will need to download that image.
Should expect MD5sum: 6cfb11dbe3554581e10d3deb8559ed63
To get the screen working¶
Go to this link Docs
Change keyboard to US from UK¶
- Quit RetroPie by pressing:
F4
- Type:
sudo dpkg-reconfigure keyboard-configuration
- Choose:
Generic 105-key (intl) PC
other
English (US)
- (at the very top)
English (US)
Default for the keyboard layout
No compose key
- Type:
sudo reboot
Wireless setup¶
Edit the wpa_supplicant.conf
file with vi or your favorite editor. Example:
sudo vi /etc/wpa_supplicant/wpa_supplicant.conf`
Add the following lines at the end of wpa_supplicant.conf
:
network={
ssid="{YOUR_SSID}"
psk="{YOUR_PASSWORD}"
proto=RSN
key_mgmt=WPA-PSK
pairwise=CCMP
auth_alg=OPEN
}
- Save (if vi
:wq
) - Reboot by typing:
sudo reboot
Get Screen Working¶
sudo raspi-config
Select the following:
advanced options
overscan
NO
Interfacing options
SPI
YES
FINISH
reboot
Edit /etc/modules-load.d/fbtft.conf
and add the items below:
sudo vi /etc/modules-load.d/fbtft.conf
spi-bcm2835
fbtft_device
- Save
Edit
/etc/modprobe.d/fbtft.conf
and add the items below:sudo vi /etc/modprobe.d/fbtft.conf
options fbtft_device custom name=fb_ili9341 gpios=reset:25,dc:24,led:17 speed=48000000 rotate=270 bgr=1
- save
- Reboot by typing:
sudo reboot
Login after reboot. At the prompt type:
con2fbmap 1 1
curl -O https://raw.githubusercontent.com/adafruit/Raspberry-Pi-Installer-Scripts/master/pitft-fbcp.sh
sudo bash pitft-fbcp.sh
Choose: y (YES) 3 (PiGRRL Zero) * y (YES)
It now downloads and installs Frame Buffer Copy
- (do you want to reboot now) y
Get Gamepad working on Badge¶
At the RetroPie Home Screen
* (Exit to terminal) press F4
At the command line:
curl -O https://raw.githubusercontent.com/adafruit/Raspberry-Pi-Installer-Scripts/master/retrogame.sh;
sudo bash retrogame.sh;
- pick 2 Pocket PiGRRRL
- (reboot) y
Edit Keys
-
sudo vi /boot/retrogame.cfg
-
edit keys
LEFT 4 # Joypad left
RIGHT 19 # Joypad right
UP 16 # Joypad up
DOWN 26 # Joypad down
A 14 # 'A' button
B 15 # 'B' button
ESC 5 # 'Select' button
ENTER 6 # 'Start' button
X 20 # 'X' button
Y 23 # 'Y' button
L 12 # Left shoulder button
R 13 # Right shoulder button
- (save)
:wq
-
sudo reboot
-
hold A
Match Keys
Hold any key to skip