Library to control an ST7735 168x80 TFT LCD display.
Project description
Python ST7735
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.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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
File details
Details for the file ST7735-0.0.3.tar.gz
.
File metadata
- Download URL: ST7735-0.0.3.tar.gz
- Upload date:
- Size: 6.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.1 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/2.7.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c2e42467360776ecf01da0e4b03029e74ce4fc692fe084d57b4038fe3732d039 |
|
MD5 | 8af98e8b435fa7f394a11990374e6201 |
|
BLAKE2b-256 | 25ab5d9506299839dad858adbabda2c3c81aff5a6b83a12f23e385e9fe4cbf67 |
File details
Details for the file ST7735-0.0.3-py3-none-any.whl
.
File metadata
- Download URL: ST7735-0.0.3-py3-none-any.whl
- Upload date:
- Size: 7.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.1 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/2.7.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0d63a6a506fb789f67c1dc63993ec242abfc47041f660d15591bebf6cd3852f9 |
|
MD5 | 4fd60599ef30652d594c734242741963 |
|
BLAKE2b-256 | a0e7442e35b9e247431c6fbb659110555a76d7e23ce0b541ffd54891e0954022 |
File details
Details for the file ST7735-0.0.3-py2-none-any.whl
.
File metadata
- Download URL: ST7735-0.0.3-py2-none-any.whl
- Upload date:
- Size: 8.9 kB
- Tags: Python 2
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.1 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/2.7.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fed474b56159a3e2db4149b966fc4d382e251aa2f50cbc78454fcfb330d9e9ba |
|
MD5 | ba98d0501df25337ed9179b095fac753 |
|
BLAKE2b-256 | 79de68b21dbeed85e5957f1a08659fa31d8824ec90a2710608e8bbfc9a9eea4d |