Introduction
============
.. image:: https://readthedocs.org/projects/adafruit-circuitpython-ili9341/badge/?version=latest
:target: https://docs.circuitpython.org/projects/ili9341/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_ILI9341/workflows/Build%20CI/badge.svg
:target: https://github.com/adafruit/Adafruit_CircuitPython_ILI9341/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 ILI9341 and ILI9340 TFT-LCD displays.
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
import fourwire
import adafruit_ili9341
# If you use explicit pins with busio.SPI(...), calling release_displays() first
# prevents "pin in use" errors on subsequent reloads.
displayio.release_displays()
spi = board.SPI()
tft_cs = board.D9
tft_dc = board.D10
display_bus = fourwire.FourWire(spi, command=tft_dc, chip_select=tft_cs)
display = adafruit_ili9341.ILI9341(display_bus, width=320, height=240)
# Make the display context
splash = displayio.Group()
display.root_group = splash
color_bitmap = displayio.Bitmap(320, 240, 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/ili9341/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_ILI9341/blob/main/CODE_OF_CONDUCT.md>`_
before contributing to help this project stay welcoming.
Raw data
{
"_id": null,
"home_page": null,
"name": "adafruit-circuitpython-ili9341",
"maintainer": null,
"docs_url": null,
"requires_python": null,
"maintainer_email": null,
"keywords": "adafruit, blinka, circuitpython, micropython, ili9341, display, tft, lcd, displayio",
"author": null,
"author_email": "Adafruit Industries <circuitpython@adafruit.com>",
"download_url": "https://files.pythonhosted.org/packages/aa/15/acf4f747b936aec07a53e1873bc3299b9be948f4cbb5b9c69c4fe36ccbe7/adafruit_circuitpython_ili9341-2.0.2.tar.gz",
"platform": null,
"description": "Introduction\n============\n\n.. image:: https://readthedocs.org/projects/adafruit-circuitpython-ili9341/badge/?version=latest\n :target: https://docs.circuitpython.org/projects/ili9341/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_ILI9341/workflows/Build%20CI/badge.svg\n :target: https://github.com/adafruit/Adafruit_CircuitPython_ILI9341/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 ILI9341 and ILI9340 TFT-LCD displays.\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 import fourwire\n import adafruit_ili9341\n\n # If you use explicit pins with busio.SPI(...), calling release_displays() first\n # prevents \"pin in use\" errors on subsequent reloads.\n displayio.release_displays()\n\n spi = board.SPI()\n tft_cs = board.D9\n tft_dc = board.D10\n\n display_bus = fourwire.FourWire(spi, command=tft_dc, chip_select=tft_cs)\n\n display = adafruit_ili9341.ILI9341(display_bus, width=320, height=240)\n\n # Make the display context\n splash = displayio.Group()\n display.root_group = splash\n\n color_bitmap = displayio.Bitmap(320, 240, 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/ili9341/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_ILI9341/blob/main/CODE_OF_CONDUCT.md>`_\nbefore contributing to help this project stay welcoming.\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "displayio driver for ILI9341 and ILI9340 TFT-LCD displays.",
"version": "2.0.2",
"project_urls": {
"Homepage": "https://github.com/adafruit/Adafruit_CircuitPython_ili9341"
},
"split_keywords": [
"adafruit",
" blinka",
" circuitpython",
" micropython",
" ili9341",
" display",
" tft",
" lcd",
" displayio"
],
"urls": [
{
"comment_text": null,
"digests": {
"blake2b_256": "d76580ce253603ce975f8d272918c333354fffbb3c541cbd2a07390bb43c111b",
"md5": "441d946fa698ee4b456633f985c3ed0e",
"sha256": "7076c54fde840b2f985345dd62ebbda1b9ea24f82e659f4ad2d45ba77db760b8"
},
"downloads": -1,
"filename": "adafruit_circuitpython_ili9341-2.0.2-py3-none-any.whl",
"has_sig": false,
"md5_digest": "441d946fa698ee4b456633f985c3ed0e",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 5042,
"upload_time": "2025-10-20T16:47:46",
"upload_time_iso_8601": "2025-10-20T16:47:46.604239Z",
"url": "https://files.pythonhosted.org/packages/d7/65/80ce253603ce975f8d272918c333354fffbb3c541cbd2a07390bb43c111b/adafruit_circuitpython_ili9341-2.0.2-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "aa15acf4f747b936aec07a53e1873bc3299b9be948f4cbb5b9c69c4fe36ccbe7",
"md5": "e9b94a3b45af2c33aa6c920c8f382113",
"sha256": "e1820867edc8c520332e95267ac27ad3f5c35a71eeec2baa005a9e0f0cd0fa26"
},
"downloads": -1,
"filename": "adafruit_circuitpython_ili9341-2.0.2.tar.gz",
"has_sig": false,
"md5_digest": "e9b94a3b45af2c33aa6c920c8f382113",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 23627,
"upload_time": "2025-10-20T16:47:47",
"upload_time_iso_8601": "2025-10-20T16:47:47.548375Z",
"url": "https://files.pythonhosted.org/packages/aa/15/acf4f747b936aec07a53e1873bc3299b9be948f4cbb5b9c69c4fe36ccbe7/adafruit_circuitpython_ili9341-2.0.2.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-10-20 16:47:47",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "adafruit",
"github_project": "Adafruit_CircuitPython_ili9341",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"requirements": [
{
"name": "Adafruit-Blinka",
"specs": []
},
{
"name": "adafruit-blinka-displayio",
"specs": []
}
],
"lcname": "adafruit-circuitpython-ili9341"
}