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 160x160 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

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.1.tar.gz (6.2 kB view details)

Uploaded Source

Built Distributions

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

Uploaded Python 3

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

Uploaded Python 2

File details

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

File metadata

  • Download URL: ST7789-0.0.1.tar.gz
  • Upload date:
  • Size: 6.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/2.7.16

File hashes

Hashes for ST7789-0.0.1.tar.gz
Algorithm Hash digest
SHA256 74caf9368b84542390c2260a6b5cc4c1fbfa1452c10c726ae985ce45f2027d87
MD5 578ec537644c685b2ce3cdae0d69dd06
BLAKE2b-256 bedea4dc3ab41e92f191fb432e663711b17be6c5247e0e5d3d2d272cacdf78a2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ST7789-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 6.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/2.7.16

File hashes

Hashes for ST7789-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a010da9ed33d0d06a6bdbdf4f40f676a191651585963bb305a6785559a077804
MD5 ef79c7d7fde16c641880d4006059f5d7
BLAKE2b-256 2491b6365df895954608eaa2655b59fd1fc04a4e91d3ff4976dd7ead018d7343

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ST7789-0.0.1-py2-none-any.whl
  • Upload date:
  • Size: 6.8 kB
  • Tags: Python 2
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/2.7.16

File hashes

Hashes for ST7789-0.0.1-py2-none-any.whl
Algorithm Hash digest
SHA256 9f8c70ded042991bb47e9460fd3e522f402b708d4a5e968b9733e2a98d806716
MD5 23b70c8d32fe0ff3330f60f4d370870f
BLAKE2b-256 459002265b25137c4b3e851f26cf5f98b2e2144630152b9b57ecd225d55996b3

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