adafruit-circuitpython-hx8357


Nameadafruit-circuitpython-hx8357 JSON
Version 1.4.4 PyPI version JSON
download
home_pageNone
Summarydisplayio driver for hx8357 and ILI9340 TFT-LCD displays.
upload_time2024-10-07 21:59:21
maintainerNone
docs_urlNone
authorNone
requires_pythonNone
licenseMIT
keywords adafruit blinka circuitpython micropython hx8357 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-hx8357/badge/?version=latest
    :target: https://docs.circuitpython.org/projects/hx8357/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_HX8357/workflows/Build%20CI/badge.svg
    :target: https://github.com/adafruit/Adafruit_CircuitPython_HX8357/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 HX8357 Displays such as the 3.5-inch TFT FeatherWing and Breakout


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

* `Adafruit CircuitPython <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_hx8357 import HX8357

    spi = board.SPI()
    tft_cs = board.D9
    tft_dc = board.D10

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

    display = HX8357(display_bus, width=480, height=320)

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

    color_bitmap = displayio.Bitmap(480, 320, 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/hx8357/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_HX8357/blob/main/CODE_OF_CONDUCT.md>`_
before contributing to help this project stay welcoming.

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "adafruit-circuitpython-hx8357",
    "maintainer": null,
    "docs_url": null,
    "requires_python": null,
    "maintainer_email": null,
    "keywords": "adafruit, blinka, circuitpython, micropython, hx8357, display, tft, lcd, displayio",
    "author": null,
    "author_email": "Adafruit Industries <circuitpython@adafruit.com>",
    "download_url": "https://files.pythonhosted.org/packages/e0/29/59d45a221b160351d990ee49a40f3824280bc7f289948f3fcd6b1ccef877/adafruit_circuitpython_hx8357-1.4.4.tar.gz",
    "platform": null,
    "description": "Introduction\n============\n\n.. image:: https://readthedocs.org/projects/adafruit-circuitpython-hx8357/badge/?version=latest\n    :target: https://docs.circuitpython.org/projects/hx8357/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_HX8357/workflows/Build%20CI/badge.svg\n    :target: https://github.com/adafruit/Adafruit_CircuitPython_HX8357/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 HX8357 Displays such as the 3.5-inch TFT FeatherWing and Breakout\n\n\nDependencies\n=============\nThis driver depends on:\n\n* `Adafruit CircuitPython <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_hx8357 import HX8357\n\n    spi = board.SPI()\n    tft_cs = board.D9\n    tft_dc = board.D10\n\n    displayio.release_displays()\n    display_bus = displayio.FourWire(spi, command=tft_dc, chip_select=tft_cs)\n\n    display = HX8357(display_bus, width=480, height=320)\n\n    # Make the display context\n    splash = displayio.Group()\n    display.show(splash)\n\n    color_bitmap = displayio.Bitmap(480, 320, 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/hx8357/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_HX8357/blob/main/CODE_OF_CONDUCT.md>`_\nbefore contributing to help this project stay welcoming.\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "displayio driver for hx8357 and ILI9340 TFT-LCD displays.",
    "version": "1.4.4",
    "project_urls": {
        "Homepage": "https://github.com/adafruit/Adafruit_CircuitPython_hx8357"
    },
    "split_keywords": [
        "adafruit",
        " blinka",
        " circuitpython",
        " micropython",
        " hx8357",
        " display",
        " tft",
        " lcd",
        " displayio"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "ef1412e3ac85a6c0f5501a1c65a0e4df7b16ef0f7f7ae85e9888bd151b8b9ce4",
                "md5": "dd03e643e75bc9d4d095783c83c38ef3",
                "sha256": "7bbabaa6fae042b5d7f6de95b85338c740b569e97dad5a0bc5f992e1ae7413e1"
            },
            "downloads": -1,
            "filename": "adafruit_circuitpython_hx8357-1.4.4-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "dd03e643e75bc9d4d095783c83c38ef3",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 4779,
            "upload_time": "2024-10-07T21:59:19",
            "upload_time_iso_8601": "2024-10-07T21:59:19.079526Z",
            "url": "https://files.pythonhosted.org/packages/ef/14/12e3ac85a6c0f5501a1c65a0e4df7b16ef0f7f7ae85e9888bd151b8b9ce4/adafruit_circuitpython_hx8357-1.4.4-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "e02959d45a221b160351d990ee49a40f3824280bc7f289948f3fcd6b1ccef877",
                "md5": "57e5ad8fc7cf32793031f7c1f2ed5c0c",
                "sha256": "a0227697c9a9bdd7c94355a8098505db8ef50775fea960860fad1ebe068cda9b"
            },
            "downloads": -1,
            "filename": "adafruit_circuitpython_hx8357-1.4.4.tar.gz",
            "has_sig": false,
            "md5_digest": "57e5ad8fc7cf32793031f7c1f2ed5c0c",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 26257,
            "upload_time": "2024-10-07T21:59:21",
            "upload_time_iso_8601": "2024-10-07T21:59:21.340439Z",
            "url": "https://files.pythonhosted.org/packages/e0/29/59d45a221b160351d990ee49a40f3824280bc7f289948f3fcd6b1ccef877/adafruit_circuitpython_hx8357-1.4.4.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-10-07 21:59:21",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "adafruit",
    "github_project": "Adafruit_CircuitPython_hx8357",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "requirements": [],
    "lcname": "adafruit-circuitpython-hx8357"
}
        
Elapsed time: 0.35766s