adafruit-circuitpython-st7735r


Nameadafruit-circuitpython-st7735r JSON
Version 1.6.1 PyPI version JSON
download
home_page
Summarydisplayio driver for ST7735R TFT-LCD displays.
upload_time2023-12-09 17:35:03
maintainer
docs_urlNone
author
requires_python
licenseMIT
keywords adafruit blinka circuitpython micropython st7735r 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-st7735r/badge/?version=latest
    :target: https://docs.circuitpython.org/projects/st7735r/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_ST7735R/workflows/Build%20CI/badge.svg
    :target: https://github.com/adafruit/Adafruit_CircuitPython_ST7735R/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 ST7735R TFT-LCD displays.

Hardware
=========

* `1.8" SPI TFT display, 160x128 18-bit color
  <https://www.adafruit.com/product/618>`_
* `Adafruit 0.96" 160x80 Color TFT Display w/ MicroSD Card Breakout
  <https://www.adafruit.com/product/3533>`_
* `1.8" Color TFT LCD display with MicroSD Card Breakout
  <https://www.adafruit.com/product/358>`_
* `Adafruit 1.44" Color TFT LCD Display with MicroSD Card breakout
  <https://www.adafruit.com/product/2088>`_
* `Adafruit Mini Color TFT with Joystick FeatherWing
  <https://www.adafruit.com/product/3321>`_

If you have a board with a ST7735B chip, you may want to try
`the Adafruit ST7735 Driver <https://github.com/adafruit/Adafruit_CircuitPython_ST7735>`_.

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
    import fourwire
    from adafruit_st7735r import ST7735R

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

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

    display = ST7735R(display_bus, width=128, height=128, colstart=2, rowstart=1)

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

    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/st7735r/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_ST7735R/blob/main/CODE_OF_CONDUCT.md>`_
before contributing to help this project stay welcoming.

            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "adafruit-circuitpython-st7735r",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "adafruit,blinka,circuitpython,micropython,st7735r,display,tft,lcd,displayio",
    "author": "",
    "author_email": "Adafruit Industries <circuitpython@adafruit.com>",
    "download_url": "https://files.pythonhosted.org/packages/80/7b/c203877faf9649a5cbccc436decdb510cbd8df483873f759d0a6c5dae4cd/adafruit-circuitpython-st7735r-1.6.1.tar.gz",
    "platform": null,
    "description": "Introduction\n============\n\n.. image:: https://readthedocs.org/projects/adafruit-circuitpython-st7735r/badge/?version=latest\n    :target: https://docs.circuitpython.org/projects/st7735r/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_ST7735R/workflows/Build%20CI/badge.svg\n    :target: https://github.com/adafruit/Adafruit_CircuitPython_ST7735R/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 ST7735R TFT-LCD displays.\n\nHardware\n=========\n\n* `1.8\" SPI TFT display, 160x128 18-bit color\n  <https://www.adafruit.com/product/618>`_\n* `Adafruit 0.96\" 160x80 Color TFT Display w/ MicroSD Card Breakout\n  <https://www.adafruit.com/product/3533>`_\n* `1.8\" Color TFT LCD display with MicroSD Card Breakout\n  <https://www.adafruit.com/product/358>`_\n* `Adafruit 1.44\" Color TFT LCD Display with MicroSD Card breakout\n  <https://www.adafruit.com/product/2088>`_\n* `Adafruit Mini Color TFT with Joystick FeatherWing\n  <https://www.adafruit.com/product/3321>`_\n\nIf you have a board with a ST7735B chip, you may want to try\n`the Adafruit ST7735 Driver <https://github.com/adafruit/Adafruit_CircuitPython_ST7735>`_.\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    import fourwire\n    from adafruit_st7735r import ST7735R\n\n    spi = board.SPI()\n    tft_cs = board.D5\n    tft_dc = board.D6\n\n    displayio.release_displays()\n    display_bus = fourwire.FourWire(spi, command=tft_dc, chip_select=tft_cs, reset=board.D9)\n\n    display = ST7735R(display_bus, width=128, height=128, colstart=2, rowstart=1)\n\n    # Make the display context\n    splash = displayio.Group()\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/st7735r/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_ST7735R/blob/main/CODE_OF_CONDUCT.md>`_\nbefore contributing to help this project stay welcoming.\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "displayio driver for ST7735R TFT-LCD displays.",
    "version": "1.6.1",
    "project_urls": {
        "Homepage": "https://github.com/adafruit/Adafruit_CircuitPython_ST7735R"
    },
    "split_keywords": [
        "adafruit",
        "blinka",
        "circuitpython",
        "micropython",
        "st7735r",
        "display",
        "tft",
        "lcd",
        "displayio"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "a2d12c9521f8154b2488c740d3b265d83f085f93da69663598de5c0e9d02a557",
                "md5": "9024a9cc1eaf20c3a23f465cbaccb21d",
                "sha256": "669d75b8068c94bb54d6e4407939459d21c62cf00f35d41f61c020e0c6a07b9b"
            },
            "downloads": -1,
            "filename": "adafruit_circuitpython_st7735r-1.6.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "9024a9cc1eaf20c3a23f465cbaccb21d",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 5129,
            "upload_time": "2023-12-09T17:35:01",
            "upload_time_iso_8601": "2023-12-09T17:35:01.779465Z",
            "url": "https://files.pythonhosted.org/packages/a2/d1/2c9521f8154b2488c740d3b265d83f085f93da69663598de5c0e9d02a557/adafruit_circuitpython_st7735r-1.6.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "807bc203877faf9649a5cbccc436decdb510cbd8df483873f759d0a6c5dae4cd",
                "md5": "b21b38788039e5ae69d1e4bc636d271f",
                "sha256": "718f8d636fbc3a6dbb332fe9f40610020a79d9637391d78e601d5514691d5a35"
            },
            "downloads": -1,
            "filename": "adafruit-circuitpython-st7735r-1.6.1.tar.gz",
            "has_sig": false,
            "md5_digest": "b21b38788039e5ae69d1e4bc636d271f",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 27963,
            "upload_time": "2023-12-09T17:35:03",
            "upload_time_iso_8601": "2023-12-09T17:35:03.177059Z",
            "url": "https://files.pythonhosted.org/packages/80/7b/c203877faf9649a5cbccc436decdb510cbd8df483873f759d0a6c5dae4cd/adafruit-circuitpython-st7735r-1.6.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-12-09 17:35:03",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "adafruit",
    "github_project": "Adafruit_CircuitPython_ST7735R",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "requirements": [],
    "lcname": "adafruit-circuitpython-st7735r"
}
        
Elapsed time: 0.39966s