Skip to main content

Library to control an ST7735 168x80 TFT LCD display.

Project description

Python ST7735

Build Status Coverage Status PyPi Package Python Versions

Python library to control an ST7735 TFT LCD display. Allows simple drawing on the display without installing a kernel module.

Designed specifically to work with a ST7735 based 160x80 pixel TFT SPI display. (Specifically the 0.96” 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 st7735

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.

It has been modified by Pimoroni to include support for their 160x80 SPI LCD breakout, and hopefully also generalised enough so that it will support other ST7735-powered displays.

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

  • Depend upon spidev==3.4.0 for stability fixes

  • Switch from manual data chunking to spidev.xfer3()

0.0.3

  • Fixed backlight pin

  • Added set_backlight

  • Added constants BG_SPI_CS_FRONT and BG_SPI_CS_BACK

  • Added module __version__

0.0.2

  • Support for multiple display sizes/orientations

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

ST7735-0.0.4.tar.gz (6.9 kB view details)

Uploaded Source

Built Distributions

ST7735-0.0.4-py3.7.egg (10.8 kB view details)

Uploaded Source

ST7735-0.0.4-py3-none-any.whl (7.5 kB view details)

Uploaded Python 3

ST7735-0.0.4-py2.7.egg (10.9 kB view details)

Uploaded Source

ST7735-0.0.4-py2-none-any.whl (8.9 kB view details)

Uploaded Python 2

File details

Details for the file ST7735-0.0.4.tar.gz.

File metadata

  • Download URL: ST7735-0.0.4.tar.gz
  • Upload date:
  • Size: 6.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.0.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.6.9

File hashes

Hashes for ST7735-0.0.4.tar.gz
Algorithm Hash digest
SHA256 ddcb6b317295f2b437f44706d0d4d5b6677d9b1727dd6b8a62565ac7e5ea3c6e
MD5 de3bb695a3669e4f66e46e197bbf5cb5
BLAKE2b-256 85a19eb7047e6b9e361efbbc5de5b819fe7389699d24a66335f9847e1307cd2e

See more details on using hashes here.

File details

Details for the file ST7735-0.0.4-py3.7.egg.

File metadata

  • Download URL: ST7735-0.0.4-py3.7.egg
  • Upload date:
  • Size: 10.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.0.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.6.9

File hashes

Hashes for ST7735-0.0.4-py3.7.egg
Algorithm Hash digest
SHA256 0bb4c74ce1728f04710486dbfd03e6cc41b18e5ce305de85bb174cbe5c1ef57a
MD5 f2a2ab570a344a2305b17e8a0675ecc8
BLAKE2b-256 6d1253c12cb424b214c8b0ed0c44bf13ed5637f37a2596c70c65ac8235ced8cd

See more details on using hashes here.

File details

Details for the file ST7735-0.0.4-py3-none-any.whl.

File metadata

  • Download URL: ST7735-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 7.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.0.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.6.9

File hashes

Hashes for ST7735-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 71c58ef01603a6a2a503ccc1115e74e51cee9cfa95ab6fa4c58e98865cc20da0
MD5 dcf04693e2de46806ff0ddef5c192acd
BLAKE2b-256 7f78843417869bb2b1d7e42b5f97a76850f87e45ba4e610bd0e55b8fc7757267

See more details on using hashes here.

File details

Details for the file ST7735-0.0.4-py2.7.egg.

File metadata

  • Download URL: ST7735-0.0.4-py2.7.egg
  • Upload date:
  • Size: 10.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.0.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.6.9

File hashes

Hashes for ST7735-0.0.4-py2.7.egg
Algorithm Hash digest
SHA256 e3d23fab32158c6f6533529331ce47d2cba719ca145f785d9ff655b4636045d4
MD5 17f27816bdb1b612916b86cd75d143b9
BLAKE2b-256 aae4fa24e0cdb23f3c63efa6ea7d483582ff4cd60931d073d19bac9fc7732af3

See more details on using hashes here.

File details

Details for the file ST7735-0.0.4-py2-none-any.whl.

File metadata

  • Download URL: ST7735-0.0.4-py2-none-any.whl
  • Upload date:
  • Size: 8.9 kB
  • Tags: Python 2
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.0.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.6.9

File hashes

Hashes for ST7735-0.0.4-py2-none-any.whl
Algorithm Hash digest
SHA256 42557c324858aee9480bd58a67bdb05ea102b3ea0505263b275f98115bbf9270
MD5 04f5df6e53ae769f466ba3432f8fc544
BLAKE2b-256 99a985194a62ba5f8f816125e4b2ac13929a44eefe65c030ecd4b3dd3e06825b

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