Skip to main content

Library to control an ST7789 160x160 TFT LCD display.

Project description

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

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

0.0.2

  • Fix for image retention
  • Drop defunct parameters

0.0.1

  • Initial Release

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ST7789-0.0.2.tar.gz (6.1 kB view details)

Uploaded Source

Built Distributions

ST7789-0.0.2-py3-none-any.whl (6.8 kB view details)

Uploaded Python 3

ST7789-0.0.2-py2-none-any.whl (6.8 kB view details)

Uploaded Python 2

File details

Details for the file ST7789-0.0.2.tar.gz.

File metadata

  • Download URL: ST7789-0.0.2.tar.gz
  • Upload date:
  • Size: 6.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/43.0.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.3

File hashes

Hashes for ST7789-0.0.2.tar.gz
Algorithm Hash digest
SHA256 f860ec71bf40b30b27c7b488b22fa43ace1f79088624c0c0558b246c7308f034
MD5 b5c405980d60e03f50a2071012254ece
BLAKE2b-256 d664397e5b978aead757ba538ac9971becb2e5024c899aaf3cc83a50580f1213

See more details on using hashes here.

File details

Details for the file ST7789-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: ST7789-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 6.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/43.0.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.3

File hashes

Hashes for ST7789-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 0cd6972c3d2b58e75948872f816fed99ff818e3703b51a3259fb951f4a90d851
MD5 591a287685b627021bf68cbd4f4d72f4
BLAKE2b-256 fc19a9478f86e011a3ff604ed7f092152f1e0ef1b68c8f11755082ff6eeaa644

See more details on using hashes here.

File details

Details for the file ST7789-0.0.2-py2-none-any.whl.

File metadata

  • Download URL: ST7789-0.0.2-py2-none-any.whl
  • Upload date:
  • Size: 6.8 kB
  • Tags: Python 2
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/43.0.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.3

File hashes

Hashes for ST7789-0.0.2-py2-none-any.whl
Algorithm Hash digest
SHA256 0557a082cb100683032588889962321437c2a3ec2c9f0ce3c4252ee98ddd4ac2
MD5 ed12a46f695691131587e95d1fea424b
BLAKE2b-256 0a10432d0c674cb37760993b1f6e47757ac7e1732fd3565a662e8cd80f9f15db

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page