adafruit-circuitpython-st7735


Nameadafruit-circuitpython-st7735 JSON
Version 1.2.12 PyPI version JSON
download
home_page
Summarydisplayio driver for ST7735 TFT-LCD displays.
upload_time2023-12-09 17:34:59
maintainer
docs_urlNone
author
requires_python
licenseMIT
keywords adafruit blinka circuitpython micropython st7735 display tft lcd displayio
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            Introduction
============

.. image:: https://readthedocs.org/projects/adafruit-circuitpython-st7735/badge/?version=latest
    :target: https://docs.circuitpython.org/projects/st7735/en/latest/
    :alt: Documentation Status

.. image:: https://raw.githubusercontent.com/adafruit/Adafruit_CircuitPython_Bundle/main/badges/adafruit_discord.svg
    :target: https://adafru.it/discord
    :alt: Discord

.. image:: https://github.com/adafruit/Adafruit_CircuitPython_ST7735/workflows/Build%20CI/badge.svg
    :target: https://github.com/adafruit/Adafruit_CircuitPython_ST7735/actions/
    :alt: Build Status

.. image:: https://img.shields.io/badge/code%20style-black-000000.svg
    :target: https://github.com/psf/black
    :alt: Code Style: Black

displayio driver for ST7735B TFT-LCD displays.

Hardware
=========

This driver does not work for any current Adafruit Displays. It is intended to be used with displays
with an ST7735B or similar chipset and was created using initialization codes from the Arduino Library.
If you have a newer Adafruit Display with a ST7735R or ST7735S chip,
please visit `the Adafruit ST7735R Driver <https://github.com/adafruit/Adafruit_CircuitPython_ST7735R>`_.

Dependencies
=============
This driver depends on:

* `Adafruit CircuitPython 4.0.0-beta.0+ <https://github.com/adafruit/circuitpython>`_

Please ensure all dependencies are available on the CircuitPython filesystem.
This is easily achieved by downloading
`the Adafruit library and driver bundle <https://github.com/adafruit/Adafruit_CircuitPython_Bundle>`_.

Usage Example
=============

.. code-block:: python

    import board
    import displayio
    from adafruit_st7735 import ST7735

    spi = board.SPI()
    tft_cs = board.D5
    tft_dc = board.D6

    displayio.release_displays()
    display_bus = displayio.FourWire(spi, command=tft_dc, chip_select=tft_cs, reset=board.D9)

    display = ST7735(display_bus, width=128, height=128)

    # Make the display context
    splash = displayio.Group()
    display.show(splash)

    color_bitmap = displayio.Bitmap(128, 128, 1)
    color_palette = displayio.Palette(1)
    color_palette[0] = 0xFF0000

    bg_sprite = displayio.TileGrid(color_bitmap,
                                   pixel_shader=color_palette,
                                   x=0, y=0)
    splash.append(bg_sprite)

    while True:
        pass

Documentation
=============

API documentation for this library can be found on `Read the Docs <https://docs.circuitpython.org/projects/st7735/en/latest/>`_.

For information on building library documentation, please check out `this guide <https://learn.adafruit.com/creating-and-sharing-a-circuitpython-library/sharing-our-docs-on-readthedocs#sphinx-5-1>`_.

Contributing
============

Contributions are welcome! Please read our `Code of Conduct
<https://github.com/adafruit/Adafruit_CircuitPython_ST7735/blob/main/CODE_OF_CONDUCT.md>`_
before contributing to help this project stay welcoming.

            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "adafruit-circuitpython-st7735",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "adafruit,blinka,circuitpython,micropython,st7735,display,tft,lcd,displayio",
    "author": "",
    "author_email": "Adafruit Industries <circuitpython@adafruit.com>",
    "download_url": "https://files.pythonhosted.org/packages/54/dd/f691c048c1b188e9af09ef755049a035b6a04464c5fdc112411fcb03a868/adafruit-circuitpython-st7735-1.2.12.tar.gz",
    "platform": null,
    "description": "Introduction\n============\n\n.. image:: https://readthedocs.org/projects/adafruit-circuitpython-st7735/badge/?version=latest\n    :target: https://docs.circuitpython.org/projects/st7735/en/latest/\n    :alt: Documentation Status\n\n.. image:: https://raw.githubusercontent.com/adafruit/Adafruit_CircuitPython_Bundle/main/badges/adafruit_discord.svg\n    :target: https://adafru.it/discord\n    :alt: Discord\n\n.. image:: https://github.com/adafruit/Adafruit_CircuitPython_ST7735/workflows/Build%20CI/badge.svg\n    :target: https://github.com/adafruit/Adafruit_CircuitPython_ST7735/actions/\n    :alt: Build Status\n\n.. image:: https://img.shields.io/badge/code%20style-black-000000.svg\n    :target: https://github.com/psf/black\n    :alt: Code Style: Black\n\ndisplayio driver for ST7735B TFT-LCD displays.\n\nHardware\n=========\n\nThis driver does not work for any current Adafruit Displays. It is intended to be used with displays\nwith an ST7735B or similar chipset and was created using initialization codes from the Arduino Library.\nIf you have a newer Adafruit Display with a ST7735R or ST7735S chip,\nplease visit `the Adafruit ST7735R Driver <https://github.com/adafruit/Adafruit_CircuitPython_ST7735R>`_.\n\nDependencies\n=============\nThis driver depends on:\n\n* `Adafruit CircuitPython 4.0.0-beta.0+ <https://github.com/adafruit/circuitpython>`_\n\nPlease ensure all dependencies are available on the CircuitPython filesystem.\nThis is easily achieved by downloading\n`the Adafruit library and driver bundle <https://github.com/adafruit/Adafruit_CircuitPython_Bundle>`_.\n\nUsage Example\n=============\n\n.. code-block:: python\n\n    import board\n    import displayio\n    from adafruit_st7735 import ST7735\n\n    spi = board.SPI()\n    tft_cs = board.D5\n    tft_dc = board.D6\n\n    displayio.release_displays()\n    display_bus = displayio.FourWire(spi, command=tft_dc, chip_select=tft_cs, reset=board.D9)\n\n    display = ST7735(display_bus, width=128, height=128)\n\n    # Make the display context\n    splash = displayio.Group()\n    display.show(splash)\n\n    color_bitmap = displayio.Bitmap(128, 128, 1)\n    color_palette = displayio.Palette(1)\n    color_palette[0] = 0xFF0000\n\n    bg_sprite = displayio.TileGrid(color_bitmap,\n                                   pixel_shader=color_palette,\n                                   x=0, y=0)\n    splash.append(bg_sprite)\n\n    while True:\n        pass\n\nDocumentation\n=============\n\nAPI documentation for this library can be found on `Read the Docs <https://docs.circuitpython.org/projects/st7735/en/latest/>`_.\n\nFor information on building library documentation, please check out `this guide <https://learn.adafruit.com/creating-and-sharing-a-circuitpython-library/sharing-our-docs-on-readthedocs#sphinx-5-1>`_.\n\nContributing\n============\n\nContributions are welcome! Please read our `Code of Conduct\n<https://github.com/adafruit/Adafruit_CircuitPython_ST7735/blob/main/CODE_OF_CONDUCT.md>`_\nbefore contributing to help this project stay welcoming.\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "displayio driver for ST7735 TFT-LCD displays.",
    "version": "1.2.12",
    "project_urls": {
        "Homepage": "https://github.com/adafruit/Adafruit_CircuitPython_ST7735"
    },
    "split_keywords": [
        "adafruit",
        "blinka",
        "circuitpython",
        "micropython",
        "st7735",
        "display",
        "tft",
        "lcd",
        "displayio"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "5590909668a2215d4a4ee64b0fd8d853bf954653019fefb80c20e047d786efd5",
                "md5": "654ba83d752f3a459e75ebd865f3fd29",
                "sha256": "2d2b45861f3cccbec93dd2e831c87bfe3d58e299b5c160e52bfbff2ad7aa2eff"
            },
            "downloads": -1,
            "filename": "adafruit_circuitpython_st7735-1.2.12-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "654ba83d752f3a459e75ebd865f3fd29",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 4564,
            "upload_time": "2023-12-09T17:34:57",
            "upload_time_iso_8601": "2023-12-09T17:34:57.950116Z",
            "url": "https://files.pythonhosted.org/packages/55/90/909668a2215d4a4ee64b0fd8d853bf954653019fefb80c20e047d786efd5/adafruit_circuitpython_st7735-1.2.12-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "54ddf691c048c1b188e9af09ef755049a035b6a04464c5fdc112411fcb03a868",
                "md5": "50a86c04cacc252e7dcf2896857d6e84",
                "sha256": "696b0e59bd8643be4ba41ac5bb662af81936d6c7f5c04eb36436a122cdbc61c9"
            },
            "downloads": -1,
            "filename": "adafruit-circuitpython-st7735-1.2.12.tar.gz",
            "has_sig": false,
            "md5_digest": "50a86c04cacc252e7dcf2896857d6e84",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 25796,
            "upload_time": "2023-12-09T17:34:59",
            "upload_time_iso_8601": "2023-12-09T17:34:59.655602Z",
            "url": "https://files.pythonhosted.org/packages/54/dd/f691c048c1b188e9af09ef755049a035b6a04464c5fdc112411fcb03a868/adafruit-circuitpython-st7735-1.2.12.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-12-09 17:34:59",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "adafruit",
    "github_project": "Adafruit_CircuitPython_ST7735",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "requirements": [],
    "lcname": "adafruit-circuitpython-st7735"
}
        
Elapsed time: 0.15352s