cd ~ wget https://raw.githubusercontent.com/adafruit/Raspberry-Pi-Installer-Scripts/master/adafruit-pitft.sh chmod +x adafruit-pitft.sh sudo ./adafruit-pitft.sh
- PiTFT Selection Once you run it you will be presented with menus for configuration.
For the 2.4", 2.8" and 3.2" PiTFT with resistive touchscreen overlay select #1
PiTFT as Text Console If you want the PiTFT to act as a text console, select YES to "Would you like the console to appear on the PiTFT display" choose NO to boot into GUI.
When 2.8" touch screen installed, the display driver will override these settings, so that 320×480 resolution is being used instead, both by X11 and RealVNC. By switching RealVNC into virtual mode, it is possible to start a virtual desktop at a higher resolution:
pi@raspberrypi:~ $ vncserver-virtual