Skip to main content

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

Installing

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

1.0.0

  • Rename module from ST7735 to st7735
  • Port to gpiod/gpiodevice

0.0.5

  • Add support for choosing between BGR/RGB displays
  • Add methods for display power and sleep control

0.0.4-post1

  • Repackage with Markdown README/setup.cfg
  • Fix __version__ to 0.0.4
  • Update dependencies in README

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

Release files for st7735 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for st7735 1.0.0
File Size Uploaded
st7735-1.0.0.tar.gz 62.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for st7735 1.0.0
File Interpreter ABI Platform
st7735-1.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 73.4 kB

Release files / st7735-1.0.0.tar.gz

Download URL st7735-1.0.0.tar.gz
Size 62.3 kB
Tags Source
SHA-256 checksum
How to use checksums
401dee9c1e1bcdf18df9a205876788d726bb170491e6cd6f8bc8a6ab16801e18
BLAKE2b-256 checksum
How to use checksums
59e296baf395a81ff7237af7b62260b8049a2a2a14e940828221a96c7ce3d759
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.2

Release files / st7735-1.0.0-py3-none-any.whl

Download URL st7735-1.0.0-py3-none-any.whl
Size 11.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
20eb580e3d2462d8498ea5922cb5c1128abc46cbbc91998f07911054b3594f83
BLAKE2b-256 checksum
How to use checksums
d9008d3c5af2375969f840e3e24e309d9568c2fb8c438575b7acad4c148e38c6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.2

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files

0.0.5

2 release files

0.0.4

5 release files

0.0.3

3 release files

0.0.2

3 release files

0.0.1

3 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page