ls
mkdir Freeplay
cd Freeplay/
ls
sudo apt install git libconfig++-dev
sudo raspi-config
sudo /home/pi/RetroPie-Setup/retropie_setup.sh
ls
sudo /home/pi/RetroPie-Setup/retropie_setup.sh
cd Freeplay/
ls
git clone https://github.com/TheFlav/mk_arcade_joystick_rpi.git
sudo wget --output-document=/boot/overlays/waveshare32b.dtbo https://github.com/TheFlav/Freeplay-Support/raw/master/waveshare32b-fp.dtbo
git clone https://github.com/TheFlav/rpi-fbcp.git
git clone https://github.com/TheFlav/Freeplay-Support.git
ls
cd rpi-fbcp/
ls
cat install.sh 
./install.sh 
cd ..
ls
cd mk_arcade_joystick_rpi/
ls
cat install.sh 
./install.sh 
ls -la /lib/modules/4.14.30-v7+/build
sudo apt-get install raspberrypi-kernel-headers
ls
cat install.sh 
ls -la
find /lib |grep mk_
sudo dkms build -m mk_arcade_joystick_rpi -v 0.1.5.6
sudo dkms build
sudo dkms 
uname -a
sudo reboot
ls
cd Freeplay/mk_arcade_joystick_rpi/
./install.sh 
ls
cd ..
cd Freeplay-Support/
ls
cat install
cat install.sh 
if grep -q "python /home/pi/Freeplay/Freeplay-Support/shutdown_daemon.py &" /etc/rc.local; then     echo "/etc/rc.local already contains shutdown script"; else     sudo sed -i -e '$i \python /home/pi/Freeplay/Freeplay-Support/shutdown_daemon.py &\n' /etc/rc.local; fi
cat /opt/retropie/configs/all/autostart.sh 
sudo cp autostart.sh /opt/retropie/configs/all
sudo cp freeplaycfg.txt /boot
sudo cp fpstartup.py /boot
chmod a+x killes.sh
sudo cp killes.service /etc/systemd/system/
sudo systemctl enable killes
sudo reboot
cd Freeplay/
ls
cd mk_arcade_joystick_rpi/
ls
cat install.sh 
cd ..
cd Freeplay-Support/
cat install.sh 
diff InputAutoCfg.ini /opt/retropie/configs/n64/InputAutoCfg.ini 
cat InputAutoCfg.ini 
cat /opt/retropie/configs/n64/InputAutoCfg.ini 
cat install.sh 
diff es_input.cfg /opt/retropie/configs/all/emulationstation/es_input.cfg
nano /opt/retropie/configs/all/emulationstation/es_input.cfg
nano es_input.cfg 
cat es_input.cfg 
cat /opt/retropie/configs/all/emulationstation/es_input.cfg
ls
cat install.sh 
diff GPIO\ Controller\ 1.cfg /opt/retropie/configs/all/retroarch-joypads/GPIO\ Controller\ 1.cfg 
cat GPIO\ Controller\ 1.cfg
cat /opt/retropie/configs/all/retroarch-joypads/GPIO\ Controller\ 1.cfg 
cat install.sh 
cp GPIO\ Controller\ 1.cfg /opt/retropie/configs/all/retroarch-joypads
cp es_input.cfg /opt/retropie/configs/all/emulationstation/
sudo reboot
sudo RetroPie-Setup/retropie_setup.sh 
cd Freeplay/
git clone https://github.com/mootikins/freeplayili9341
cd freeplayili9341/
nano setup.sh 
sudo apt-get install vim
vim dispMenu.sh 
./setup.sh 
cat setup.sh 
vim dispMenu.sh 
vim /boot/config.txt 
vim dispMenu.sh 
sudo vim ~/RetroPie/retropiemenu/dispMenu.sh 
sudo service fbcp start
sudo service fbcp stop
sudo service fbcpCropped start
ls
cd Freeplay/
ls
git clone https://github.com/juj/fbcp-ili9341
cd fbcp-ili9341/
ls
vim config.h 
mkdir build
cd build
cmake -DFREEPLAYTECH_WAVESHARE32B=ON -DUSE_DMA_TRANSFERS=ON -DSPI_BUS_CLOCK_DIVISOR=6 -DBREAK_ASPECT_RATIO_WHEN_SCALING=ON ..
cmake -DFREEPLAYTECH_WAVESHARE32B=ON -DUSE_DMA_TRANSFERS=ON -DSPI_BUS_CLOCK_DIVISOR=6 -DBREAK_DISPLAY_ASPECT_RATIO_WHEN_SCALING=ON ..
cmake -DFREEPLAYTECH_WAVESHARE32B=ON -DUSE_DMA_TRANSFERS=ON -DSPI_BUS_CLOCK_DIVISOR=6 -DDISPLAY_BREAK_ASPECT_RATIO_WHEN_SCALING=ON ..
make -j
sudo service stop fbcpCropped
sudo service fbcpCropped stop
sudo ./fbcp-ili9341 
vim ../config.h 
vim ../gpu.h
vim ../gpu.cpp 
cd ..
ls
vim freeplaytech_waveshare32b.h 
cd build
cmake -DFREEPLAYTECH_WAVESHARE32B=ON -DUSE_DMA_TRANSFERS=ON -DSPI_BUS_CLOCK_DIVISOR=6 -DDISPLAY_BREAK_ASPECT_RATIO_WHEN_SCALING=ON .
make -j
./fbcp-ili9341 
sudo ./fbcp-ili9341 
sudo service fbcpCropped stop
sudo service fbcpCropped start
sudo service fbcpCropped stop
cd Freeplay/fbcp-ili9341/
ls
cd build
ls
sudo service fbcpCropped stop
sudo cp fbcp-ili9341 /usr/local/bin/fbcpCropped
sudo service fbcpCropped start
sudo reboot
sudo shutdown -h now
ls
cd Freeplay/
ls
cd fbcp-ili9341/
ls
ls build/
sudo service fbcpCropped stop
cd build/
./fbcp-ili9341 
sudo ./fbcp-ili9341 
vim ../freeplaytech_waveshare32b.h 
cd ..
rm -rf
rm -rf build
mkdir buildCropped
mkdir buildFilled
cd buildCropped/
vim ../freeplaytech_waveshare32b.h 
cmake -DFREEPLAYTECH_WAVESHARE32B=ON -DUSE_DMA_TRANSFERS=ON -DSPI_BUS_CLOCK_DIVISOR=6 -DDISPLAY_BREAK_ASPECT_RATIO_WHEN_SCALING=ON .
cmake -DFREEPLAYTECH_WAVESHARE32B=ON -DUSE_DMA_TRANSFERS=ON -DSPI_BUS_CLOCK_DIVISOR=6 -DDISPLAY_BREAK_ASPECT_RATIO_WHEN_SCALING=ON ..
make -j
sudo ./fbcp-ili9341 
vim ../freeplaytech_waveshare32b.h 
make -j
sudo ./fbcp-ili9341
cd ../..
mv fbcp-ili9341/ fbcpOLD
mkdir fbcp-ili9341
cd fbcp
cd fbcp-ili9341/
git init
git remote add origin https://github.com/juj/fbcp-ili9341
git fetch origin 0b4a6cbd52539fab112ec62a0d740cefdc874d31
git fetch origin 0b4a6cb
git fetch origin 0b4a6cbd52539fab112ec62a0d740cefdc874d31
cd ..
rm -rf fbcp-ili9341/
git clone https://github.com/juj/fbcp-ili9341
cd fbcp-ili9341/
ls
git reset --hard 0b4a6cbd52539fab112ec62a0d740cefdc874d31
git status 
ls
vim gpu.cpp 
vim dma.cpp 
mkdir build
cd build
cmake -DFREEPLAYTECH_WAVESHARE32B=ON -DUSE_DMA_TRANSFERS=ON -DSPI_BUS_CLOCK_DIVISOR=6 -DDISPLAY_BREAK_ASPECT_RATIO_WHEN_SCALING=ON -DSTATISTICS=0 ..
make -j
sudo ./fbcp-ili9341 
ls
cd Freeplay/
ls
cd freeplayili9341/
ls
git pull
git pull --quiet
git status
cp dispMenuCM3.sh /home/pi/RetroPie/retropiemenu/dispMenu.sh
sudo cp dispMenuCM3.sh /home/pi/RetroPie/retropiemenu/dispMenu.sh
cd ..
ls
rm -rf fbcp-ili9341/ fbcpOLD/
ls
sudo shutdown -h now
vim /opt/retropie/configs/all/emulationstation/gamelists/retropie/gamelist.xml 
sudo reboot
cd Freeplay/freeplayili9341/
git pull
cp dispMenuCM3.sh ../../RetroPie/retropiemenu/dispMenu.sh 
sudo cp dispMenuCM3.sh ../../RetroPie/retropiemenu/dispMenu.sh 
cd ~
ls
cd Freeplay/freeplayili9341/
git pull
sudo cp dispMenuCM3.sh ../../RetroPie/retropiemenu/dispMenu.sh 
cat ~/RetroPie/retropiemenu/dispMenu.sh 
vim  ~/RetroPie/retropiemenu/dispMenu.sh 
sudo vim  ~/RetroPie/retropiemenu/dispMenu.sh 
sudo service fbcp status
sudo service fbcp restart
sudo service fbcp status
sudo service fbcp stop
sudo service fbcp start
sudo service fbcp stop
sudo service fbcp status
sudo service fbcp start
sudo service fbcp status
sudo update-rc.d fbcp.sh remove
sudo update-rc.d fbcp.sh defaults
sudo service fbcp start
ps aux | grep fbcp
sudo killall fbcp
sudo pkill fbcp
sudo service fbcp start
sudo reboot
sudo service Freeplay-fbcp start
vim /etc/init.d/fbcp.sh
sudo vim /etc/init.d/fbcp.sh
sudo reboot
sudo vim /etc/init.d/fbcp.sh
ls /usr/local/bin | grep Freeplay
sudo /usr/local/bin/Freeplay-fbcp /boot/freeplayfbcp.cfg
ls /usr/local/bin
ls /etc/init.d/
ls /usr/local/bin -a
ls /usr/local/bin -l
ls -l /boot/
vim /boot/freeplaycfg.bak 
sudo vim /boot/freeplaycfg.bak 
sudo reboot
cd Freeplay/freeplayili9341/
git pull
sudo cp dispMenuCM3.sh ../../RetroPie/retropiemenu/dispMenu.sh 
vim /boot/config.txt 
sudo sed -i 's|dtoverlay=waveshare32b|#dtoverlay=waveshare32b|' /boot/config.txt
vim /boot/config.txt 
sudo vim /boot/config.txt 
sudo sed -i 's|#dtoverlay=waveshare32b|dtoverlay=waveshare32b|' /boot/config.txt
sudo vim /boot/config.txt 
git pull
sudo cp dispMenuCM3.sh ../../RetroPie/retropiemenu/dispMenu.sh 
vim /boot/config.txt 
sudo vim /boot/config.txt 
cd Freeplay/freeplayili9341/
git pull
sudo cp dispMenuCM3.sh ../../RetroPie/retropiemenu/dispMenu.sh 
cd Freeplay/freeplayili9341/
git pull
sudo cp dispMenuCM3.sh ../../RetroPie/retropiemenu/dispMenu.sh 
cd Freeplay/
ls
cd setPCA9633/
git pull
ls -la
date
git pull
ls
cd ..
rm -rf setPCA9633/
git clone https://github.com/TheFlav/setPCA9633.git
cd setPCA9633/
ls
cat setup.sh 
make
cp Freeplay\ LCD\ Brightness.sh /home/pi/RetroPie/retropiemenu/Freeplay\ LCD\ Brightness.sh
sudo reboot
