Skip to content
CircuitPython display driver for ILI9341
Python
Branch: master
Clone or download
kattni Merge pull request #16 from adafruit/dherrada-patch-1
Removed building locally section from README, replaced with documenta…
Latest commit 6171a38 Oct 21, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
docs Removed Tutorial Link. Added Product Links Mar 20, 2019
examples Added software SPI as an option Oct 1, 2019
.gitignore Added example with pinout specific to the shield Jul 26, 2019
.pylintrc Initial commit that has a fixed display size. Jan 24, 2019
.readthedocs.yml Initial commit that has a fixed display size. Jan 24, 2019
.travis.yml Initial commit that has a fixed display size. Jan 24, 2019
CODE_OF_CONDUCT.md Initial commit that has a fixed display size. Jan 24, 2019
LICENSE Initial commit that has a fixed display size. Jan 24, 2019
README.rst Removed building locally section from README, replaced with documenta… Oct 17, 2019
adafruit_ili9341.py
requirements.txt Initial commit that has a fixed display size. Jan 24, 2019

README.rst

Introduction

Documentation Status Discord Build Status

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 adafruit_ili9341

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 = adafruit_ili9341.ILI9341(display_bus, width=320, height=240)

# Make the display context
splash = displayio.Group(max_size=10)
display.show(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

Contributing

Contributions are welcome! Please read our Code of Conduct before contributing to help this project stay welcoming.

Documentation

For information on building library documentation, please check out this guide.

You can’t perform that action at this time.