Skip to content

Python module to control an ILI9486 TFT. Allows simple drawing PIL images on the display.

License

Notifications You must be signed in to change notification settings

SirLefti/Python_ILI9486

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python ILI9486 Display Driver

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.

Installation and use

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-lgpio

Create a virtual environment:

python -m venv .venv

Install python dependencies:

.venv/bin/pip install -r requirements.txt

Run example:

.venv/bin/python image.py

Notes

Brightness 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.

Original licensing notes

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

About

Python module to control an ILI9486 TFT. Allows simple drawing PIL images on the display.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages