ST7735


NameST7735 JSON
Version 0.0.5 PyPI version JSON
download
home_pagehttps://www.pimoroni.com
SummaryLibrary to control an ST7735 168x80 TFT LCD display.
upload_time2023-08-07 10:46:07
maintainer
docs_urlNone
authorPhilip Howard
requires_python
licenseMIT
keywords raspberry pi
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Python ST7735

[![Build Status](https://travis-ci.com/pimoroni/st7735-python.svg?branch=master)](https://travis-ci.com/pimoroni/st7735-python)
[![Coverage Status](https://coveralls.io/repos/github/pimoroni/st7735-python/badge.svg?branch=master)](https://coveralls.io/github/pimoroni/st7735-python?branch=master)
[![PyPi Package](https://img.shields.io/pypi/v/st7735.svg)](https://pypi.python.org/pypi/st7735)
[![Python Versions](https://img.shields.io/pypi/pyversions/st7735.svg)](https://pypi.python.org/pypi/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

### Python 2

Make sure you have the following dependencies:

````
sudo apt update
sudo apt install python-rpi.gpio python-spidev python-pip python-pil python-numpy
````

Install this library by running:

````
sudo pip install st7735
````

### Python 3

Make sure you have the following dependencies:

````
sudo apt update
sudo apt install python3-rpi.gpio python3-spidev python3-pip python3-pil python3-numpy
````

Install this library by running:

````
sudo python3 -m 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

# Changelog
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



            

Raw data

            {
    "_id": null,
    "home_page": "https://www.pimoroni.com",
    "name": "ST7735",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "Raspberry Pi",
    "author": "Philip Howard",
    "author_email": "phil@pimoroni.com",
    "download_url": "https://files.pythonhosted.org/packages/38/52/02f1b24507d7049ac46da90618a6781612dd9ff4ffd1b9c4e8c1c2bc3d2d/ST7735-0.0.5.tar.gz",
    "platform": null,
    "description": "# Python ST7735\n\n[![Build Status](https://travis-ci.com/pimoroni/st7735-python.svg?branch=master)](https://travis-ci.com/pimoroni/st7735-python)\n[![Coverage Status](https://coveralls.io/repos/github/pimoroni/st7735-python/badge.svg?branch=master)](https://coveralls.io/github/pimoroni/st7735-python?branch=master)\n[![PyPi Package](https://img.shields.io/pypi/v/st7735.svg)](https://pypi.python.org/pypi/st7735)\n[![Python Versions](https://img.shields.io/pypi/pyversions/st7735.svg)](https://pypi.python.org/pypi/st7735)\n\n\nPython library to control an ST7735 TFT LCD display. Allows simple drawing on the display without installing a kernel module.\n\nDesigned specifically to work with a ST7735 based 160x80 pixel TFT SPI display. (Specifically the 0.96\" SPI LCD from Pimoroni).\n\n## Installing\n\n### Python 2\n\nMake sure you have the following dependencies:\n\n````\nsudo apt update\nsudo apt install python-rpi.gpio python-spidev python-pip python-pil python-numpy\n````\n\nInstall this library by running:\n\n````\nsudo pip install st7735\n````\n\n### Python 3\n\nMake sure you have the following dependencies:\n\n````\nsudo apt update\nsudo apt install python3-rpi.gpio python3-spidev python3-pip python3-pil python3-numpy\n````\n\nInstall this library by running:\n\n````\nsudo python3 -m pip install st7735\n````\n\nSee example of usage in the examples folder.\n\n\n# Licensing & History\n\nThis 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.\n\nIt 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.\n\n## Modifications include:\n\n* 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)`\n* `width`, `height`, `rotation`, `invert`, `offset_left` and `offset_top` parameters can be passed into `__init__` for alternate displays\n* `Adafruit_GPIO` has been replaced with `RPi.GPIO` and `spidev` to closely align with our other software (IE: Raspberry Pi only)\n* Test fixtures have been added to keep this library stable\n\nPimoroni invests time and resources forking and modifying this open source code, please support Pimoroni and open-source software by purchasing products from us, too!\n\nAdafruit invests time and resources providing this open source code, please support Adafruit and open-source hardware by purchasing products from Adafruit!\n\nModified from 'Modified from 'Adafruit Python ILI9341' written by Tony DiCola for Adafruit Industries.' written by Clement Skau.\n\nMIT license, all text above must be included in any redistribution\n\n# Changelog\n0.0.5\n-----\n\n* Add support for choosing between BGR/RGB displays\n* Add methods for display power and sleep control\n\n0.0.4-post1\n-----------\n\n* Repackage with Markdown README/setup.cfg\n* Fix `__version__` to 0.0.4\n* Update dependencies in README\n\n0.0.4\n-----\n\n* Depend upon spidev==3.4.0 for stability fixes\n* Switch from manual data chunking to spidev.xfer3()\n\n\n0.0.3\n-----\n\n* Fixed backlight pin\n* Added `set_backlight`\n* Added constants BG_SPI_CS_FRONT and BG_SPI_CS_BACK\n* Added module `__version__`\n\n0.0.2\n-----\n\n* Support for multiple display sizes/orientations\n\n0.0.1\n-----\n\n* Initial Release\n\n\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Library to control an ST7735 168x80 TFT LCD display.",
    "version": "0.0.5",
    "project_urls": {
        "GitHub": "https://www.github.com/pimoroni/st7735-python",
        "Homepage": "https://www.pimoroni.com"
    },
    "split_keywords": [
        "raspberry",
        "pi"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "bf47d430e0c28824c2ddde2c87ca8e5aae1f6d211660942158bb4a2a34a9113e",
                "md5": "25db3d6b57edbcab48e8d649209ed445",
                "sha256": "d801b598e07cbfeb259c9184266fcdbbddbd1d3dd02b9b7b00fe7a07d811f1f7"
            },
            "downloads": -1,
            "filename": "ST7735-0.0.5-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "25db3d6b57edbcab48e8d649209ed445",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 7759,
            "upload_time": "2023-08-07T10:46:06",
            "upload_time_iso_8601": "2023-08-07T10:46:06.742710Z",
            "url": "https://files.pythonhosted.org/packages/bf/47/d430e0c28824c2ddde2c87ca8e5aae1f6d211660942158bb4a2a34a9113e/ST7735-0.0.5-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "385202f1b24507d7049ac46da90618a6781612dd9ff4ffd1b9c4e8c1c2bc3d2d",
                "md5": "763943d9d91dd7fc0a2baf1ef7933bfa",
                "sha256": "7a06c281b03729fdbb2becc1e9d591e2711ef1e9a631ecdd109c5493f465f354"
            },
            "downloads": -1,
            "filename": "ST7735-0.0.5.tar.gz",
            "has_sig": false,
            "md5_digest": "763943d9d91dd7fc0a2baf1ef7933bfa",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 8227,
            "upload_time": "2023-08-07T10:46:07",
            "upload_time_iso_8601": "2023-08-07T10:46:07.844696Z",
            "url": "https://files.pythonhosted.org/packages/38/52/02f1b24507d7049ac46da90618a6781612dd9ff4ffd1b9c4e8c1c2bc3d2d/ST7735-0.0.5.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-08-07 10:46:07",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "pimoroni",
    "github_project": "st7735-python",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "st7735"
}
        
Elapsed time: 0.10252s