Game Pi 3.5" with Analog
Part list:
- LCD 3.5 inch
https://www.aliexpress.com/item/1005006175220737.html
(For screen i use this setup)
cd ~
sudo apt-get install cmake
git clone https://github.com/furrysalamander/fbcp-ili9341.git
cd fbcp-ili9341
mkdir build
cd build
cmake -DST7796S=ON -DGPIO_TFT_DATA_CONTROL=25 -DGPIO_TFT_RESET_PIN=7 -DGPIO_TFT_BACKLIGHT=13 -DSPI_BUS_CLOCK_DIVISOR=4 -DDISPLAY_SWAP_BGR=ON -DARMV8A=ON -DSTATISTICS=0 -DBACKLIGHT_CONTROL=OFF -DUSE_DMA_TRANSFERS=ON ..
make -j
Raspberry Pi Zero 2 w
Raspberry Pi Pico for Joystick
https://github.com/OpenStickCommunity/GP2040-CEBattery (any with size)
95mmx60mmx6mmSpeaker
https://www.aliexpress.com/item/1005004752048431.html- PCB for Start/Select/Function buttons
https://www.aliexpress.com/item/1005004410507233.html
(must replace with number 16 on this switch)
https://www.aliexpress.com/item/32847323765.html
Lipo charger
https://www.aliexpress.com/item/1005001798454949.htmlOn/Off switch
https://www.aliexpress.com/item/32721440534.htmlWelding Wires
https://www.aliexpress.com/item/4001082842911.htmlSound Amplify
https://www.aliexpress.com/item/1005002353859909.htmlPSP1000 analog
https://www.aliexpress.com/item/32813512414.htmlButton and direction with these parts
https://www.aliexpress.com/item/4000042319189.html
https://www.aliexpress.com/item/32604251437.html
https://www.aliexpress.com/item/1005004455699527.html
https://www.aliexpress.com/item/1005004693342872.htmlsound
I use GPIO 18 for sound
guide:
https://othermod.com/raspberry-pi-zero-audio-circuit/(option for safe shutdown)
search on comment here
https://othermod.com/raspberry-pi-soft-onoff-circuit/
https://drive.google.com/file/d/1zWKuYCPKyBOJmbojBme7qymdjaH92fg5/view
https://oshpark.com/shared_projects/WP3Y5Keo(option 2 acrylic)
53mm x 79mm x 1mm- (optional Pico-8)
[for what is Pico-8]
https://www.lexaloffle.com/pico-8.php
there are 2 version of back part choose one. I add switch for change mode to pico-8 mode by pull GPIO 24
[script]
============= Pico-8
sudo apt-get install wiringpi
--------------------------- choose config
sudo nano /etc/profile.d/10-retropie.sh
if [ "tty" = "/dev/tty1" ] && [ -z "$DISPLAY" ] && [ "$USER" = "pi" ]; then
if [[ "$(gpio -g read 24)" = "0" ]]; then /home/pi/pico-8/pico8 -splore && sudo rebootelse bash "/opt/retropie/configs/all/autostart.sh"fifi
copy Pico-8 to /home/pi
sudo chmod 777 ~/pico-8/pico8
And again for preview (in Thai language)
https://www.youtube.com/watch?v=Tj83dbPSxlo