[{Image src='attach/AdafruitMiniPiTFT/MiniTFT-thumb.jpg' link='attach/AdafruitMiniPiTFT/MiniTFT.jpg' caption='Mini TFT Display' align='right' class='imgFloatRight'}]

The __Adafruit Mini PiTFT - 135x240 Color TFT Add-on__ for [Raspberry Pi] is a tiny full color display
for the Raspberry Pi, about the size of a postage stamp.

This does require a bit of installation; it doesn't work out of the box, see [Adafruit Mini PiTFT - 135x240 Color TFT Add-on for Raspberry Pi Guide|https://learn.adafruit.com/adafruit-mini-pitft-135x240-color-tft-add-on-for-raspberry-pi]

!! Installation

The link above is the canonical source, but here's a copy of the gist. You first update and upgrade the Pi:
{{{
sudo apt update -y
sudo apt-get update -y
sudo apt-get upgrade -y
}}}
Then shutdown with:
{{{
sudo shutdown -h now
}}}
Disconnect the power, attach the TFT display and re-apply power. Then:
{{{
cd ~
sudo pip3 install --upgrade adafruit-python-shell click
sudo apt-get install -y git
git clone https://github.com/adafruit/Raspberry-Pi-Installer-Scripts.git
cd Raspberry-Pi-Installer-Scripts
sudo python3 adafruit-pitft.py --display=st7789_240x135 --rotation=270 --install-type=console
}}}


!! Compatibility with Current Pi Kernels

It turns out the current Python library support for the Adafruit PiTFT displays doesn't work with the 2021-era linux kernels.

The solution is to "pin" the kernel version back to 1.20201126-1. This is described in the Adafruit Forum

* [Mini Pi TFT 1.14" and 2.0" 320x240 Color IPS TFT both gone d|https://forums.adafruit.com/viewtopic.php?f=47&t=175848]

which is further described at:

* [Kernel Module Troubleshooting|https://learn.adafruit.com/adafruit-mini-pitft-135x240-color-tft-add-on-for-raspberry-pi/kernel-module-troubleshooting]   

!! Pinout

* __5.0V__ - Connected to the display backlight
* __3.3V __- Connected to the display power and also the STEMMA QT / Qwiic connector
* __GND__ - Ground for everything
* __SDA & SCL __- I2C data for the STEMMA QT / Qwiic connector. Not used by buttons or display
* __GPIO22 __- Used to turn the backlight on and off. If you never want to turn the backlight off, cut the small jumper on the bottom of the PiTFT to free up GPIO22
* __GPIO23 & GPIO24 __- Connected to the two front buttons. These pins have 10K pullups to 3.3V so when the button is pressed, you will read a LOW voltage on these pins
* __SCK, MOSI, CE0 & GPIO25 - __These are the display control pins. Note that MISO is not connected even though it is a SPI pin because you cannot read back from the display.




!! Links


* [Mini PiTFT - 135x240 Color TFT|https://www.adafruit.com/product/4393] on AdaFruit




----

[{Tag Hardware}]