Skip to main content

Displays text using CircuitPython's displayio.

Project description

Introduction

Documentation Status Discord Build Status Code Style: Ruff

This library decodes an image file into new bitmap and palette objects of the provided type. It’s designed to load code needed during decoding as needed. This is meant to minimize the memory overhead of the decoding code.

Only certain types of bitmaps work with this library, and they often have to be exported in specific ways. To find out what types are supported and how to make them, see this learn guide page.

Usage Example

import board
import displayio
import adafruit_imageload

image, palette = adafruit_imageload.load(
    "images/4bit.bmp", bitmap=displayio.Bitmap, palette=displayio.Palette
)
tile_grid = displayio.TileGrid(image, pixel_shader=palette)

group = displayio.Group()
group.append(tile_grid)
board.DISPLAY.root_group = group
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_imageload-1.24.6.tar.gz (94.7 kB view details)

Uploaded Source

Built Distribution

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

File details

Details for the file adafruit_circuitpython_imageload-1.24.6.tar.gz.

File metadata

File hashes

Hashes for adafruit_circuitpython_imageload-1.24.6.tar.gz
Algorithm Hash digest
SHA256 17b7e6aa9075754bf4702094fa91d5bc00a3fc3d0df2a1a8f5b3b0d4c44355db
MD5 36d0c1f8f28abc0737013e3db25b2a07
BLAKE2b-256 d1a255094ea8e472f0b6e5d09d8750a1781409cb4af6d781b5ddf9eaff8e064a

See more details on using hashes here.

File details

Details for the file adafruit_circuitpython_imageload-1.24.6-py3-none-any.whl.

File metadata

File hashes

Hashes for adafruit_circuitpython_imageload-1.24.6-py3-none-any.whl
Algorithm Hash digest
SHA256 2074d644f2789595da17fcdf46c794405f8a80729c8d224447f447b8eebc10bf
MD5 a0aacb2f0c13d5a1c978bb3a515beaec
BLAKE2b-256 33e97d7adf4792994d0ad187c00e0e14183706d6111956b7a4a7616ff1d924f6

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