jakiee3y / Python_ST7735

Python library to control an ST7735 TFT LCD display. Allows simple drawing on the display without installing a kernel module.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

I found some LCDs with st7735 not display colors correctly. But we can fix this without changing the code in lib path.

If red and blue exchanged, add disp.command([0x36, 0x68]) after disp.begin() If black and white reversed, add disp.command(0x21) after disp.begin()

If you want shorter time in initializing, the lib code musted be modified.

Python ST7735

Python library to control an ST7735 TFT LCD display. Allows simple drawing on the display without installing a kernel module.

Designed specifically to work with a ST7735 based 128x160 pixel TFT SPI display.

For all platforms (Raspberry Pi and Beaglebone Black) make sure you have the following dependencies:

sudo apt-get update
sudo apt-get install build-essential python-dev python-smbus python-pip python-imaging python-numpy

For a Raspberry Pi make sure you have the RPi.GPIO and Adafruit GPIO libraries by executing:

sudo pip install RPi.GPIO
sudo pip install Adafruit_GPIO

For a BeagleBone Black make sure you have the Adafruit_BBIO library by executing:

sudo pip install Adafruit_BBIO

Install the library by downloading with the download link on the right, unzipping the archive, navigating inside the library's directory and executing:

sudo python setup.py install

See example of usage in the examples folder.

Adafruit invests time and resources providing this open source code, please support Adafruit and open-source hardware by purchasing products from Adafruit!

Modified from 'Adafruit Python ILI9341' written by Tony DiCola for Adafruit Industries.

MIT license, all text above must be included in any redistribution

About

Python library to control an ST7735 TFT LCD display. Allows simple drawing on the display without installing a kernel module.

License:MIT License


Languages

Language:Python 100.0%