glennlake

3.5 PiTFT setup

Jul 19th, 2016
317
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.46 KB | None | 0 0
  1. Blatantly Stolen from Adafruit
  2.  
  3. ssh into your RetroPie
  4.  
  5. (1)Copy Code one line at a time into terminal
  6. -----
  7. curl -SLs https://apt.adafruit.com/add-pin | sudo bash
  8. sudo apt-get update
  9. sudo apt-get install adafruit-pitft-helper raspberrypi-bootloader
  10. sudo adafruit-pitft-helper -t 35r
  11. -----
  12. The “curl” line can take a very long time; this is normal. Likewise with the “update.” When the adafruit-pitft-helper script asks about the console, answer 'n'.DO NOT enable the console on the PiTFT or you’ll be starting over.
  13. Edit /boot/config.txt and change the dtoverlay line (near the end, added by the adafruit-pitft-helper script) to make it a little more responsive:
  14.  
  15. (2)Copy Code at the end of the file
  16. -----
  17. dtoverlay=pitft35r,rotate=90,speed=64000000,fps=30
  18. -----
  19. Also while you're editing that file, add these lines at the end so the framebuffer's running at the PiTFT's native resolution:
  20.  
  21. (3)Copy Code at the end of the file
  22. -----
  23. hdmi_force_hotplug=1
  24. hdmi_group=2
  25. hdmi_mode=87
  26. hdmi_cvt=480 320 60 1 0 0 0
  27. disable_overscan=1
  28. -----
  29. Install fbcp:
  30.  
  31. (4)Copy Code one line at a time
  32. -----
  33. git clone https://github.com/tasanakorn/rpi-fbcp
  34. cd rpi-fbcp/
  35. mkdir build
  36. cd build/
  37. cmake ..
  38. make
  39. sudo install fbcp /usr/local/bin/fbcp
  40. -----
  41. And edit /etc/rc.local, inserting this one line just before the final 'exit 0':
  42.  
  43. (5)Copy Code
  44. -----
  45. /usr/local/bin/fbcp &
  46. -----
  47. Then 'sudo reboot' and you should have RetroPie/EmulationStation on the PiTFT!
Advertisement
Add Comment
Please, Sign In to add comment