Skip to main content

displayio driver for hx8357 and ILI9340 TFT-LCD displays.

Project description

Introduction

Documentation Status Discord Build Status Code Style: Ruff

displayio Driver for HX8357 Displays such as the 3.5-inch TFT FeatherWing and Breakout

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 fourwire import FourWire
from adafruit_hx8357 import HX8357

spi = board.SPI()
tft_cs = board.D9
tft_dc = board.D10

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

display = HX8357(display_bus, width=480, height=320)

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

color_bitmap = displayio.Bitmap(480, 320, 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_hx8357-2.0.4.tar.gz (23.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

adafruit_circuitpython_hx8357-2.0.4-py3-none-any.whl (4.8 kB view details)

Uploaded Python 3

File details

Details for the file adafruit_circuitpython_hx8357-2.0.4.tar.gz.

File metadata

File hashes

Hashes for adafruit_circuitpython_hx8357-2.0.4.tar.gz
Algorithm Hash digest
SHA256 e1a059bf83a3f96f1f8ad8b009768934875a9ac9e92236367322f6bbdd2e97ef
MD5 e01fe2f489c363fb3d922c89077b3dd6
BLAKE2b-256 a558a0a224bd7929db86b43f1742a680c551e2982735a0afd4ac2a0fb69b77e2

See more details on using hashes here.

File details

Details for the file adafruit_circuitpython_hx8357-2.0.4-py3-none-any.whl.

File metadata

File hashes

Hashes for adafruit_circuitpython_hx8357-2.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 3abd98c4706a35d95f29bb3a7694a593ff87fe8ea4db06fce633d488b36b109c
MD5 c06227101dc04ff3d8374396885f22c9
BLAKE2b-256 fc8e97c9c7cc42140196ff48d190c47e6fd97c3fdbfd207c1178eb7ccb40fdaa

See more details on using hashes here.

Supported by

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