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.8.tar.gz (96.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.8.tar.gz.

File metadata

File hashes

Hashes for adafruit_circuitpython_imageload-1.24.8.tar.gz
Algorithm Hash digest
SHA256 64112d916363740615a5ac5570e98df303b9bf4a9114231b3fc4a0e14a6c9cb0
MD5 749e03b53ff2fdad045f07e0937815a0
BLAKE2b-256 b467a17f8c2b724616bcc038fcc6bf645081cc8a3cc5b8498f22f823db2e09b8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for adafruit_circuitpython_imageload-1.24.8-py3-none-any.whl
Algorithm Hash digest
SHA256 b67f873e13f1fe03895072d0aae50e83a263e64bc40b0eddb988d59042928a6d
MD5 52b9c363367f1bad97409a1b4b5aec3a
BLAKE2b-256 d3dab67b44b7af8fd2a1a019154c4353c3a0f654f38ec093a0fe4b24af93e2fb

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