Library to control an ST7789 160x160 TFT LCD display.
Python library to control an ST7789 TFT LCD display
Designed specifically to work with a ST7789 based 240x240 pixel TFT SPI display. (Specifically the 1.3" SPI LCD from Pimoroni).
Make sure you have the following dependencies:
sudo apt-get update sudo apt-get install python-rpi.gpio python-spidev python-pip python-pil python-numpy
Install this library by running:
sudo pip install st7789
See example of usage in the examples folder.
Licensing & History
This library is a modification of a modification of code originally written by Tony DiCola for Adafruit Industries, and modified to work with the ST7735 by Clement Skau.
To create this ST7789 driver, it has been hard-forked from st7735-python which was originally modified by Pimoroni to include support for their 160x80 SPI LCD breakout.
- PIL/Pillow has been removed from the underlying display driver to separate concerns- you should create your own PIL image and display it using
offset_topparameters can be passed into
__init__for alternate displays
Adafruit_GPIOhas been replaced with
spidevto closely align with our other software (IE: Raspberry Pi only)
- Test fixtures have been added to keep this library stable
Pimoroni invests time and resources forking and modifying this open source code, please support Pimoroni and open-source software by purchasing products from us, too!
Adafruit invests time and resources providing this open source code, please support Adafruit and open-source hardware by purchasing products from Adafruit!
Modified from 'Modified from 'Adafruit Python ILI9341' written by Tony DiCola for Adafruit Industries.' written by Clement Skau.
MIT license, all text above must be included in any redistribution
- Fix for image retention
- Drop defunct parameters
- Initial Release
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|Filename, size||File type||Python version||Upload date||Hashes|
|Filename, size ST7789-0.0.2-py2-none-any.whl (6.8 kB)||File type Wheel||Python version py2||Upload date||Hashes View|
|Filename, size ST7789-0.0.2-py3-none-any.whl (6.8 kB)||File type Wheel||Python version py3||Upload date||Hashes View|
|Filename, size ST7789-0.0.2.tar.gz (6.1 kB)||File type Source||Python version None||Upload date||Hashes View|