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.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.2.tar.gz
.
File metadata
- Download URL: ST7735-0.0.2.tar.gz
- Upload date:
- Size: 6.7 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 | 2631ad35df3b46e29b49038f46354a0e957a79357796332c7f68feaa98a9fae3 |
|
MD5 | d93f376b74958ea3095d7c2552385029 |
|
BLAKE2b-256 | c3d5d07bc988b9a23376972dde5ac107d4d6194f6cb2223ffbf592954763119e |
File details
Details for the file ST7735-0.0.2-py3-none-any.whl
.
File metadata
- Download URL: ST7735-0.0.2-py3-none-any.whl
- Upload date:
- Size: 7.4 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 | 1668dabbae33d7fbb8065735c8c4146bfb2e142e989baeda6e7a3a32a9c67a7c |
|
MD5 | 76c8bf5cb00825909170127d843b701b |
|
BLAKE2b-256 | 76b4271afea9d84b5e2acaf14d06b7b98001db507a0fb70c9007d6454e0dfb6e |
File details
Details for the file ST7735-0.0.2-py2-none-any.whl
.
File metadata
- Download URL: ST7735-0.0.2-py2-none-any.whl
- Upload date:
- Size: 8.7 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 | b5d620a254e892f184fae1d862f923a11144f7bd8d02f424b9fd0a8e26551ca1 |
|
MD5 | 361201afb1bd0e38eedddddec078fafb |
|
BLAKE2b-256 | 1ba3bd80c61209a016356e75b4c9436da994ae2ad595cb003a51d22d7e9fad06 |