Introduction
displayio driver for ILI9341 and ILI9340 TFT-LCD displays.
Dependencies
This driver depends on:
Please ensure all dependencies are available on the CircuitPython filesystem. This is easily achieved by downloading the Adafruit library and driver bundle.
Usage Example
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.
For information on building library documentation, please check out this guide.
Contributing
Contributions are welcome! Please read our Code of Conduct before contributing to help this project stay welcoming.
Release files for adafruit-circuitpython-ili9341 2.0.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| adafruit_circuitpython_ili9341-2.0.4.tar.gz | 23.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| adafruit_circuitpython_ili9341-2.0.4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 28.6 kB
Release files / adafruit_circuitpython_ili9341-2.0.4.tar.gz
| Download URL | adafruit_circuitpython_ili9341-2.0.4.tar.gz |
|---|---|
| Size | 23.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5e81049b573eae9b4229d4191cdf7f549dfbd16c8fd036e30712ceae0113050a
|
|
BLAKE2b-256 checksum How to use checksums |
ca6602b1a6010b234cdabb154ae111efbbd0f042f7427d0fed2462724ee99a7f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.15
|
Release files / adafruit_circuitpython_ili9341-2.0.4-py3-none-any.whl
| Download URL | adafruit_circuitpython_ili9341-2.0.4-py3-none-any.whl |
|---|---|
| Size | 5.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
daa851be607ad2bafb3ef20a8a50e032bbdf09a2948f0ac7eae998bd06dbbceb
|
|
BLAKE2b-256 checksum How to use checksums |
cd2823a6b744f3e7ff43ca13e62a3b45387febc86494181d8fdfcdd793da5386
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.15
|