Skip to main content

Library to control ST7789 TFT LCD displays.

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

Animated GIF showing the ST7789 SPI LCD displaying Deploy/Rainbows in alternating frames

Installation

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

Changelog

0.0.3

  • Add support for RLCD
  • Brought back offset_left and offset_top parameters

0.0.2

  • Fix for image retention
  • Drop defunct parameters

0.0.1

  • Initial Release

0.0.3

  • Add support for RLCD
  • Brought back offset_left and offset_top parameters

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

Uploaded Source

Built Distributions

ST7789-0.0.3-py3-none-any.whl (6.9 kB view details)

Uploaded Python 3

ST7789-0.0.3-py2-none-any.whl (6.9 kB view details)

Uploaded Python 2

File details

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

File metadata

  • Download URL: ST7789-0.0.3.tar.gz
  • Upload date:
  • Size: 6.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.7.3 pkginfo/1.7.0 requests/2.21.0 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.7.3

File hashes

Hashes for ST7789-0.0.3.tar.gz
Algorithm Hash digest
SHA256 0997eade80f5faabc9569fe25018166d34f4061f92c8ec3ae6816c0c9af3a682
MD5 b2d7747f9d3d3da7756fc73ce4103590
BLAKE2b-256 97fe0b7bec4d1fdbf530880c4f499a8aef88db9592b445c8a5e31d00abc4f780

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ST7789-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 6.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.7.3 pkginfo/1.7.0 requests/2.21.0 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.7.3

File hashes

Hashes for ST7789-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 b8de493178f03b515834fb207507cc49228e1b2cbbf6188acc767bc3aa467114
MD5 de53df74205024ee8c3d645f697a8b34
BLAKE2b-256 c4eb83fe289d9d762e4d11fc7b98de63c1138f47a2d887b3e647dc7cdcc27c50

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ST7789-0.0.3-py2-none-any.whl
  • Upload date:
  • Size: 6.9 kB
  • Tags: Python 2
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.7.3 pkginfo/1.7.0 requests/2.21.0 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.7.3

File hashes

Hashes for ST7789-0.0.3-py2-none-any.whl
Algorithm Hash digest
SHA256 324174da3ecf55613b49a266a5ecac4a52272d99502ac4046f40c01abdc73fed
MD5 fe011a55f9346aac7404258b592e1b44
BLAKE2b-256 9455e555eee8906aa817c6d9a0eeae9361f6e0f7f14084d97ca19ad9f1dd9e77

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