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).
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
andoffset_top
parameters can be passed into__init__
for alternate displaysAdafruit_GPIO
has been replaced withRPi.GPIO
andspidev
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
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 Distribution
File details
Details for the file st7735-1.0.0.tar.gz
.
File metadata
- Download URL: st7735-1.0.0.tar.gz
- Upload date:
- Size: 62.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 401dee9c1e1bcdf18df9a205876788d726bb170491e6cd6f8bc8a6ab16801e18 |
|
MD5 | 20329dc6343cca572a8bece4f697e865 |
|
BLAKE2b-256 | 59e296baf395a81ff7237af7b62260b8049a2a2a14e940828221a96c7ce3d759 |
File details
Details for the file st7735-1.0.0-py3-none-any.whl
.
File metadata
- Download URL: st7735-1.0.0-py3-none-any.whl
- Upload date:
- Size: 11.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 20eb580e3d2462d8498ea5922cb5c1128abc46cbbc91998f07911054b3594f83 |
|
MD5 | 35b6a4a10fa039bfcb828d19b4d05c68 |
|
BLAKE2b-256 | d9008d3c5af2375969f840e3e24e309d9568c2fb8c438575b7acad4c148e38c6 |