This page (revision-12) was last changed on 2021-06-06 11:46 by Murray Altheim

This page was created on 2019-12-29 04:20 by Murray Altheim

Only authorized users are allowed to rename pages.

Only authorized users are allowed to delete pages.

Page revision history

Version Date Modified Size Author Changes ... Change note
12 2021-06-06 11:46 4 KB Murray Altheim to previous
11 2021-06-06 11:06 3 KB Murray Altheim to previous | to last
10 2021-05-08 07:44 3 KB Murray Altheim to previous | to last
9 2021-03-28 05:32 3 KB Murray Altheim to previous | to last
8 2021-03-24 17:30 3 KB Murray Altheim to previous | to last
7 2021-03-24 09:55 2 KB Murray Altheim to previous | to last
6 2021-03-24 09:42 2 KB Murray Altheim to previous | to last
5 2021-03-24 09:41 2 KB Murray Altheim to previous | to last
4 2021-03-24 09:28 2 KB Murray Altheim to previous | to last
3 2019-12-29 04:42 1 KB Murray Altheim to previous | to last
2 2019-12-29 04:38 698 bytes Murray Altheim to previous | to last
1 2019-12-29 04:20 529 bytes Murray Altheim to last

Page References

Incoming links Outgoing links

Version management

Difference between version and

At line 2 changed one line
for the Raspberry Pi, about the size of a postage stamp. As it is connected via the SPI bus its performance is very good.
for the Raspberry Pi, about the size of a postage stamp.
At line 7 removed one line
!! Installation
At line 9 changed one line
[{Image src='attach/AdafruitMiniPiTFT/MiniTFT-thumb.jpg' link='attach/AdafruitMiniPiTFT/MiniTFT.jpg' caption='Mini TFT Display' align='right' class='imgFloatRight'}]
* [Mini PiTFT - 135x240 Color TFT|https://www.adafruit.com/product/4393] on AdaFruit
At line 11 removed 20 lines
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
}}}
The last line provides configuration for the specific display. If you've installed the board with its printed text upright the orientation (rotation) will be 270°.
At line 32 removed 5 lines
You can also run it as:
{{{
sudo python3 adafruit-pitft.py
}}}
to go through the interactive configuration.
At line 38 removed 3 lines
%%information
Note the following section describes a possible solution if the display doesn't work.
%%
At line 42 removed 47 lines
!! Compatibility with Current Pi Kernels
It turns out the current Python library support for the Adafruit PiTFT displays may not work with the 2021-era linux kernels. If you type
{{{
dpkg -l raspberrypi-kernel
}}}
and find the version (which is a date) is 2021 and you want to use one of these displays, if the display isn't working after installation, 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]
...though I note that using the March 2021 beta version of the 64 bit Raspberry Pi OS the display worked
without pinning the kernel, i.e., out of the box.
!! Fail to install tslib
If during installation of the Pi TFT software you get a message stating it had failed to install tslib, here's
a reference to a fix: [https://www.impulseadventure.com/elec/rpi-install-tslib.html] if you're willing to install
tslib yourself. But it seems:
%%blockquote
The issue is that tslib is not available anymore, it has been renamed {{libts0}} (if I'm not wrong), so the provided python script is not working anymore.. I would have expected that Adafruit provide up-to-date installation instruction for the 3.5" touchscreen
%%
...so the solution seems to be to modify the install script by substituting "libts0" for "tslib". That seems to work.
!! Pinout
This plugs directly onto the [GPIO] bus but can be wired using jumper wires, as only a few of the pins are necessary:
* __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