Raspberry Pi 1.54inch LCD-Retropie-Joystick configuration tutorial

cd RetroPie-Setup/

sudo ./retropie_setup.sh

Because the driver need internet, You may install the driver unsuccessfully,
You need try again or your internet have some problems which make your pi can not connect to github

sudo nano /etc/modprobe.d/mk_arcade_joystick_rpi.conf
After you have installed the driver well. Add the following joystick configuration to this file
#options mk_arcade_joystick_rpi map=1
options mk_arcade_joystick_rpi map=5 gpio=5,6,16,13,26,19,21,20,15,12,14,23

After rebooting to remap your key , then Gamepad works

Price: $15.89
Part Number: rpi-1.54inch-lcd
Brand: Spotpear
SKU: 0104003