Python module to control an ILI9486 LCD. Based upon the deprecated Python ILI9341 from
Adafruit and the adapted version for ILI9486 from
Liqun Hu.
Rewritten to use spidev and rpi-lgpio instead of the discontinued Adafruit counterpart libraries.
Call sudo raspi-config and then select Interface Options > SPI to enable SPI.
Install system dependencies:
sudo apt install libopenjp2-7 libopenblas0 python3 python3-rpi-lgpioCreate a virtual environment:
python -m venv .venvInstall python dependencies:
.venv/bin/pip install -r requirements.txtRun example:
.venv/bin/python image.pyBrightness control is not implemented, because many displays using this driver chip have a hardwired backlight, that
cannot be controlled via the driver chip or a GPIO pin. Implementing it would require some hardware changes on the
display unit. To emulate shutting off the display you can use lcd.clear().display(), which makes the display to show
black pixels.
Adafruit invests time and resources providing this open source code, please support Adafruit and open-source hardware by purchasing products from Adafruit!
Written by Tony DiCola for Adafruit Industries. Adapted for ILI9486 by Liqun Hu. Modified and maintained by Thorben Yzer.
MIT license, all text above must be included in any redistribution