Skip to main content

displayio driver for SSD1351 TFT-LCD displays.

Project description

Introduction

Documentation Status Discord Build Status Code Style: Black

displayio Driver for SSD1351 Displays

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.

Usage Example

import board
import displayio
from adafruit_ssd1351 import SSD1351

spi = board.SPI()
tft_cs = board.D5
tft_dc = board.D6

displayio.release_displays()
display_bus = displayio.FourWire(spi, command=tft_dc, chip_select=tft_cs, reset=board.D9)

display = SSD1351(display_bus, width=128, height=128)

# Make the display context
splash = displayio.Group()
display.root_group = splash

color_bitmap = displayio.Bitmap(128, 128, 1)
color_palette = displayio.Palette(1)
color_palette[0] = 0xFF0000

bg_sprite = displayio.TileGrid(color_bitmap,
                               pixel_shader=color_palette,
                               x=0, y=0)
splash.append(bg_sprite)

while True:
    pass

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

adafruit_circuitpython_ssd1351-1.4.2.tar.gz (25.8 kB view details)

Uploaded Source

Built Distribution

File details

Details for the file adafruit_circuitpython_ssd1351-1.4.2.tar.gz.

File metadata

File hashes

Hashes for adafruit_circuitpython_ssd1351-1.4.2.tar.gz
Algorithm Hash digest
SHA256 064792f4f817660f3af7cb810e29213b94b650fd06c76bfeebfe7142168f852c
MD5 1128c3d71a8262b13f89185aa5844498
BLAKE2b-256 f9b5daa0e75a9d320ffcd17313f1570dd8ea88fda4d401685f9e821e56fab88a

See more details on using hashes here.

File details

Details for the file adafruit_circuitpython_ssd1351-1.4.2-py3-none-any.whl.

File metadata

File hashes

Hashes for adafruit_circuitpython_ssd1351-1.4.2-py3-none-any.whl
Algorithm Hash digest
SHA256 79095b1b4e2081b60f0b5119d8bfecda82d3cf3504a4de3f76e007b2e58c83dc
MD5 bfcb16c0573aa36d072e09385d70e971
BLAKE2b-256 24d027c61e47bf8f4dd4434b1c6b6296acc6521da99986e31304dfa46d2c04fb

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page