Skip to content

Commit

Permalink
Prep for v0.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
Gadgetoid committed Jan 13, 2020
1 parent 18699dc commit 04de70a
Show file tree
Hide file tree
Showing 6 changed files with 60 additions and 70 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ python-readme: library/README.rst
python-license: library/LICENSE.txt

library/README.rst: README.md
pandoc --from=markdown --to=rst -o library/README.rst README.md
cp README.md library/README.md

library/LICENSE.txt: LICENSE
cp LICENSE library/LICENSE.txt
Expand All @@ -43,5 +43,5 @@ python-dist: python-clean python-wheels python-sdist
python-deploy: python-dist
twine upload library/dist/*

python-deploy-test: python-dist
python-testdeploy: python-dist
twine upload --repository-url https://test.pypi.org/legacy/ library/dist/*
6 changes: 6 additions & 0 deletions library/CHANGELOG.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
0.0.2
-----

* Fix for image retention
* Drop defunct parameters

0.0.1
-----

Expand Down
48 changes: 48 additions & 0 deletions library/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
# Python ST7789

[![Build Status](https://travis-ci.com/pimoroni/st7789-python.svg?branch=master)](https://travis-ci.com/pimoroni/st7789-python)
[![Coverage Status](https://coveralls.io/repos/github/pimoroni/st7789-python/badge.svg?branch=master)](https://coveralls.io/github/pimoroni/st7789-python?branch=master)
[![PyPi Package](https://img.shields.io/pypi/v/st7789.svg)](https://pypi.python.org/pypi/st7789)
[![Python Versions](https://img.shields.io/pypi/pyversions/st7789.svg)](https://pypi.python.org/pypi/st7789)


Python library to control an ST7789 TFT LCD display

Designed specifically to work with a ST7789 based 240x240 pixel TFT SPI display. (Specifically the 1.3" SPI LCD from Pimoroni).

Make sure you have the following dependencies:

````
sudo apt-get update
sudo apt-get install python-rpi.gpio python-spidev python-pip python-pil python-numpy
````

Install this library by running:

````
sudo pip install st7789
````

See example of usage in the examples folder.


# 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
65 changes: 0 additions & 65 deletions library/README.rst

This file was deleted.

2 changes: 1 addition & 1 deletion library/ST7789/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
import RPi.GPIO as GPIO


__version__ = '0.0.1'
__version__ = '0.0.2'

BG_SPI_CS_BACK = 0
BG_SPI_CS_FRONT = 1
Expand Down
5 changes: 3 additions & 2 deletions library/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,10 @@
'Topic :: System :: Hardware']

setup(name='ST7789',
version='0.0.1',
version='0.0.2',
description='Library to control an ST7789 160x160 TFT LCD display.',
long_description=open('README.rst').read() + '\n' + open('CHANGELOG.txt').read(),
long_description=open('README.md').read() + '\n' + open('CHANGELOG.txt').read(),
long_description_content_type='text/markdown',
license='MIT',
author='Philip Howard',
author_email='[email protected]',
Expand Down

0 comments on commit 04de70a

Please sign in to comment.