Skip to content
Python library to control an ST7789 240x240 1.3" TFT LCD display.
Python Makefile
Branch: master
Clone or download
Latest commit 610d35d Sep 17, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github Initial Commit Sep 17, 2019
examples Fixes to examples, bump SPI speed Sep 17, 2019
library Remove redundant args Sep 17, 2019
.gitignore Initial Commit Sep 17, 2019
.stickler.yml Initial Commit Sep 17, 2019
.travis.yml
LICENSE Initial Commit Sep 17, 2019
Makefile Initial Commit Sep 17, 2019
README.md Fix resolution Sep 17, 2019

README.md

Python ST7789

Build Status Coverage Status PyPi Package Python Versions

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-imaging 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.

Modifications include:

  • PIL/Pillow has been removed from the underlying display driver to separate concerns- you should create your own PIL image and display it using display(image)
  • width, height, rotation, invert, offset_left and offset_top parameters can be passed into __init__ for alternate displays
  • Adafruit_GPIO has been replaced with RPi.GPIO and spidev to 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

You can’t perform that action at this time.