Getting the screen working in retropie
using raspi-config, enable spi, enale ssh, disable overscan
in /etc/modules, add
in /etc/modprobe.d/fbtft.conf add
options fbtft_device name=fb_ili9341 gpios=reset:25,dc:24 speed=80000000 bgr=1 rotate=90 custom=1fps=60
reboot and its all done!
The screen by default wont actually run retropie on its own. So we need to run some code which copies the current screen into the tft. we need to download and install the code
sudo apt-get install cmake git clone https://github.com/tasanakorn/rpi-fbcp cd rpi-fbcp/ mkdir build cd build/ cmake .. make sudo install fbcp /usr/local/bin/fbcp
now we just need to add into /etc/rc.local (just make sure its before the exit)
now when you reboot, you will have a screen working!