adafruit-circuitpython-st7735r


Nameadafruit-circuitpython-st7735r JSON
Version 2.0.0 PyPI version JSON
download
home_pageNone
Summarydisplayio driver for ST7735R TFT-LCD displays.
upload_time2025-03-03 14:23:01
maintainerNone
docs_urlNone
authorNone
requires_pythonNone
licenseMIT
keywords adafruit blinka circuitpython micropython st7735r display tft lcd displayio
VCS
bugtrack_url
requirements Adafruit-Blinka adafruit-blinka-displayio
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/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json
    :target: https://github.com/astral-sh/ruff
    :alt: Code Style: Ruff

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": null,
    "name": "adafruit-circuitpython-st7735r",
    "maintainer": null,
    "docs_url": null,
    "requires_python": null,
    "maintainer_email": null,
    "keywords": "adafruit, blinka, circuitpython, micropython, st7735r, display, tft, lcd, displayio",
    "author": null,
    "author_email": "Adafruit Industries <circuitpython@adafruit.com>",
    "download_url": "https://files.pythonhosted.org/packages/37/0f/3735df184771d88d03c902d5ff013659bf2ec82c309e809e6aed7a1ed35b/adafruit_circuitpython_st7735r-2.0.0.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/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json\n    :target: https://github.com/astral-sh/ruff\n    :alt: Code Style: Ruff\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": "2.0.0",
    "project_urls": {
        "Homepage": "https://github.com/adafruit/Adafruit_CircuitPython_ST7735R"
    },
    "split_keywords": [
        "adafruit",
        " blinka",
        " circuitpython",
        " micropython",
        " st7735r",
        " display",
        " tft",
        " lcd",
        " displayio"
    ],
    "urls": [
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "705267108c25aba442e6cfc292bd3315a5690002d54dcc7a221cd2603788d508",
                "md5": "7342e4b89c6def476e2f3ad1b5a91a03",
                "sha256": "78c6cf3a323c07dcd62a64b319893f2f2526e7748fd831e44201e44d174a8c4a"
            },
            "downloads": -1,
            "filename": "adafruit_circuitpython_st7735r-2.0.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "7342e4b89c6def476e2f3ad1b5a91a03",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 5143,
            "upload_time": "2025-03-03T14:23:00",
            "upload_time_iso_8601": "2025-03-03T14:23:00.836918Z",
            "url": "https://files.pythonhosted.org/packages/70/52/67108c25aba442e6cfc292bd3315a5690002d54dcc7a221cd2603788d508/adafruit_circuitpython_st7735r-2.0.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "370f3735df184771d88d03c902d5ff013659bf2ec82c309e809e6aed7a1ed35b",
                "md5": "1bb897eddb27d61c7a590e9f1dcb3c84",
                "sha256": "a0851a75adb3ef8cd6c6a61bebd0422d2c50b3fa311c18c49bbf78092185a39a"
            },
            "downloads": -1,
            "filename": "adafruit_circuitpython_st7735r-2.0.0.tar.gz",
            "has_sig": false,
            "md5_digest": "1bb897eddb27d61c7a590e9f1dcb3c84",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 24538,
            "upload_time": "2025-03-03T14:23:01",
            "upload_time_iso_8601": "2025-03-03T14:23:01.831584Z",
            "url": "https://files.pythonhosted.org/packages/37/0f/3735df184771d88d03c902d5ff013659bf2ec82c309e809e6aed7a1ed35b/adafruit_circuitpython_st7735r-2.0.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-03-03 14:23:01",
    "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": [
        {
            "name": "Adafruit-Blinka",
            "specs": []
        },
        {
            "name": "adafruit-blinka-displayio",
            "specs": []
        }
    ],
    "lcname": "adafruit-circuitpython-st7735r"
}
        
Elapsed time: 1.19954s