DisplayIO driver for grayscale OLEDs drive by SSD1327
Project description
Introduction
DisplayIO drivers for grayscale OLEDs driven by SSD1327
Dependencies
This driver depends on:
Please ensure all dependencies are available on the CircuitPython filesystem. This is easily achieved by downloading the Adafruit library and driver bundle.
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 adafruit-circuitpython-ssd1327
To install system-wide (this may be required in some cases):
sudo pip3 install adafruit-circuitpython-ssd1327
To install in a virtual environment in your current project:
mkdir project-name && cd project-name
python3 -m venv .venv
source .venv/bin/activate
pip3 install adafruit-circuitpython-ssd1327
Usage Example
import board
import displayio
import adafruit_ssd1327
import busio
import time
displayio.release_displays()
# This pinout works on a Metro and may need to be altered for other boards.
spi = busio.SPI(board.SCL, board.SDA)
tft_cs = board.D6
tft_dc = board.D9
tft_reset = board.D5
display_bus = displayio.FourWire(spi, command=tft_dc, chip_select=tft_cs, reset=tft_reset, baudrate=1000000)
time.sleep(1)
display = adafruit_ssd1327.SSD1327(display_bus, width=128, height=128)
Documentation
API documentation for this library can be found on Read the Docs.
For information on building library documentation, please check out this guide.
Contributing
Contributions are welcome! Please read our Code of Conduct before contributing to help this project stay welcoming.
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 adafruit_circuitpython_ssd1327-1.4.2.tar.gz
.
File metadata
- Download URL: adafruit_circuitpython_ssd1327-1.4.2.tar.gz
- Upload date:
- Size: 26.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | dd9d8b221f8a20e47d7204f3e4d894920ae2cb43d0981a58239b18eff04bfa47 |
|
MD5 | cfaf2aa1a5898eb1fbdd0244531afa87 |
|
BLAKE2b-256 | c530639b66c1a2daa9c095beeeb8698c5b01c92c7756e7ec57264d64f238dccf |
File details
Details for the file adafruit_circuitpython_ssd1327-1.4.2-py3-none-any.whl
.
File metadata
- Download URL: adafruit_circuitpython_ssd1327-1.4.2-py3-none-any.whl
- Upload date:
- Size: 4.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5929a97437e53da216797990d843266ae693d951bc5817e7335d7098b8d04c5f |
|
MD5 | cc872c594d9d9da21d1072a89e71e813 |
|
BLAKE2b-256 | 965d5aabed5b1b6f16b29f6b2f2250b34dd1f8a256f17be9679649dc784052d7 |