Portable library for RGB displays.
Project description
Introduction
Generalization of display drivers from https://github.com/adafruit/adafruit-circuitpython-rgb-display to remove platform dependencies.
This driver currently supports displays that use the following display-driver chips: HX8353, HX8357, ILI9341, S6D02A1, ST7789, SSD1331, SSD1351, and ST7735 (including variants ST7735R and ST7735S).
Dependencies
This driver has no particular dependencies. It accepts pins and SPI devices compatible with MicroPython machine.Pin and machine.SPI, including gpiozero.OutputDevice pins. Objects can be adapted to fit, for example with spidev the SPI object can be given spi.send = spi.xfer3, or digitalio pins can have pin.on = lambda s: s.value = 1 to create a pin.on() member.
For improved performance consider installing NumPy.
Installing from PyPI
On supported GNU/Linux systems like the Raspberry Pi, you can install the driver locally from PyPI. To install for current user:
pip3 install rgb-display
To install system-wide (this may be required in some cases):
sudo pip3 install rgb-display
To install in a virtual environment in your current project:
mkdir project-name && cd project-name
python3 -m venv .env
source .env/bin/activate
pip3 install rgb-display
Usage Example
see examples for usage examples.
Contributing
Contributions are welcome! Please read our Code of Conduct before contributing to help this project stay welcoming.
Documentation
For information on building library documentation, please check out this guide.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file rgb-display-0.0.5.tar.gz
.
File metadata
- Download URL: rgb-display-0.0.5.tar.gz
- Upload date:
- Size: 43.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/3.7.3 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 36a3c24199b01abe45e692c10551117c6a7bf8b17e32581778d9df739ce4fd06 |
|
MD5 | 417169f33bd28e1afb012eb0d2b4e4c7 |
|
BLAKE2b-256 | d82f9e4ac4cc5991048924f464995b08d389004d96d690b73b9ff999c8776017 |
File details
Details for the file rgb_display-0.0.5-py3-none-any.whl
.
File metadata
- Download URL: rgb_display-0.0.5-py3-none-any.whl
- Upload date:
- Size: 17.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/3.7.3 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fe1951758004a1ee393c6710ad927ea224199059c0f9cd3ec14d430f8b3dee56 |
|
MD5 | f9e1fc0115ac34b8ee93d3ceaa086f8a |
|
BLAKE2b-256 | ab6e8aef2066508fe241c3d66d5a8252e6b58b34e57ff20d3016eec298f20669 |