All Projects → pimoroni → st7789-python

pimoroni / st7789-python

Licence: MIT license
Python library to control an ST7789 240x240 1.3" TFT LCD display.

Programming Languages

python
139335 projects - #7 most used programming language
Makefile
30231 projects

Projects that are alternatives of or similar to st7789-python

keybow-python
Python library for the Pimoroni Keybow 3 and 12 key mechanical keyboard add-ons for Raspberry Pi
Stars: ✭ 27 (-77.5%)
Mutual labels:  pypi-package
neowise
Deep Learning library built from scratch with Python and NumPy
Stars: ✭ 16 (-86.67%)
Mutual labels:  pypi-package
lightweight-push-pip
A lightweight way to push messages to Android devices (pip library package).
Stars: ✭ 14 (-88.33%)
Mutual labels:  pypi-package
TF2DeepFloorplan
TF2 Deep FloorPlan Recognition using a Multi-task Network with Room-boundary-Guided Attention. Enable tensorboard, quantization, flask, tflite, docker, github actions and google colab.
Stars: ✭ 98 (-18.33%)
Mutual labels:  pypi-package
pms5003-python
Python library for the PMS5003 particulate sensor
Stars: ✭ 40 (-66.67%)
Mutual labels:  pypi-package
st7735-python
Python library to control an ST7735 TFT LCD display. Allows simple drawing on the display without installing a kernel module.
Stars: ✭ 45 (-62.5%)
Mutual labels:  pypi-package
sgp30-python
Python library for the SGP30 air quality sensor
Stars: ✭ 26 (-78.33%)
Mutual labels:  pypi-package
cp-tool
cp-tool is an auto generator for solved problems at different online judges.
Stars: ✭ 24 (-80%)
Mutual labels:  pypi-package
ewtpy
Empirical wavelet transform (EWT) in Python
Stars: ✭ 52 (-56.67%)
Mutual labels:  pypi-package
Scopy
An integrated negative design python library for desirable HTS/VS database design
Stars: ✭ 28 (-76.67%)
Mutual labels:  pypi-package
trackball-python
Python library for the Pimoroni Track Ball Breakout
Stars: ✭ 30 (-75%)
Mutual labels:  pypi-package
vfxwindow
Python Qt Window class for compatibility between VFX programs
Stars: ✭ 80 (-33.33%)
Mutual labels:  pypi-package
dynamic-cli
A Modern, user-friendly command-line HTTP client for the API testing, and if you're stuck - Search and browse StackOverflow without leaving the CLI
Stars: ✭ 151 (+25.83%)
Mutual labels:  pypi-package
as7262-python
Python library for the as7262 spectral sensor breakout
Stars: ✭ 14 (-88.33%)
Mutual labels:  pypi-package
pycln
A formatter for finding and removing unused import statements.
Stars: ✭ 161 (+34.17%)
Mutual labels:  pypi-package
github-flavored-markdown-to-html
Convert markdown to HTML using the GitHub API and some additional tweaks with Python. Comes with full formula support and image compression.
Stars: ✭ 44 (-63.33%)
Mutual labels:  pypi-package
pypi-command-line
A powerful, colorful, beautiful command-line-interface for pypi.org
Stars: ✭ 32 (-73.33%)
Mutual labels:  pypi-package
PySDM
Pythonic particle-based (super-droplet) warm-rain/aqueous-chemistry cloud microphysics package with box, parcel & 1D/2D prescribed-flow examples in Python, Julia and Matlab
Stars: ✭ 26 (-78.33%)
Mutual labels:  pypi-package
drum-hat
Python library for the Pimoroni Drum HAT Raspberry Pi Add-on board.
Stars: ✭ 26 (-78.33%)
Mutual labels:  pypi-package
geneticalgorithm2
Supported highly optimized and flexible genetic algorithm package for python
Stars: ✭ 36 (-70%)
Mutual labels:  pypi-package

Python ST7789

Build Status Coverage Status PyPi Package Python Versions

Python library to control ST7789 TFT LCD displays.

Designed to work with the following Pimoroni ST7789 based SPI breakouts and Raspberry Pi HATs:

Photo showing four different Pimoroni ST7789-based products

Installation

First, make sure you have the following dependencies:

sudo apt update
sudo apt install python3-rpi.gpio python3-spidev python3-pip python3-pil python3-numpy

Install this library by running:

sudo pip3 install st7789

You will also need to make sure I2C and SPI are enabled in raspi-config (sudo raspi-config) - you can find them under Interface Options.

Examples

You can find some examples of use in the examples folder. Clone this repo with:

git clone https://github.com/pimoroni/st7789-python

and navigate into the examples folder with:

cd ~/st7789-python/examples/

You can pass most of them a parameter (square, rect, round, or dhmini) to specify the size/shape/rotation of screen, like this:

python3 shapes.py dhmini

Licensing & History

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

To create this ST7789 driver, it has been hard-forked from st7735-python which was originally modified by Pimoroni to include support for their 160x80 SPI LCD breakout.

Modifications include:

  • PIL/Pillow has been removed from the underlying display driver to separate concerns- you should create your own PIL image and display it using display(image)
  • width, height, rotation, invert, offset_left and offset_top parameters can be passed into __init__ for alternate displays
  • Adafruit_GPIO has been replaced with RPi.GPIO and spidev to closely align with our other software (IE: Raspberry Pi only)
  • Test fixtures have been added to keep this library stable

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!

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.

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

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].