Skip to content

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

License

Notifications You must be signed in to change notification settings

vincnttt/ST7735_pylib

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ST7735 PYLib

license device python

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 1.8inch (128x160 pixel) TFT SPI display.

Installation

Python 3

Install required dependencies

sudo pip install numpy spidev RPi.GPIO

Usages

At present, this repository still not available to install using pip, so its recommended to copy the file /ST7735/ST7735.py into your project directory.

Then to use, import the library like showed below.

import ST7735

Tested and work on Raspberry PI 4b, Python 3.9.x

License

This library is a modification of a modification of code originally written by Tony DiCola for Adafruit Industries repo, and modified to work with the ST7735 by Clement Skau repo.

Now this library has been modified by Vincent Lin to support ST7735 1.8inch (128x160 pixel), originally this modification was motivate by Pimoroni to include support for their 160x80 SPI LCD breakout repo

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

History and Modification

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

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

Pimoroni invests time and resources forking and modifying this open source code, please support Pimoroni and open-source software by purchasing products from us, too!

Vincent Lin was modified this repo based on the three repository's ideas that introduced on Licensing part above, mixing the methods to make it work with ST7735 1.8inch (128x160 pixel) TFT SPI, with some features that introduced in Modification part below.

Modification

  • Set value of width=128 and height=160
  • Support screen rotation rotation
  • Dependencies Adafruit_GPIO replaced with RPi.GPIO and spidev

Examples

See example of usage in the /examples/ folder.

Thanks

Thanks to Tony DiCola for Adafruit Industries, Clement Skau and Pimoroni 👏, to make this project open-source till now 😃

About

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

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%