Skip to main content

Displays text using CircuitPython's displayio.

Project description

Introduction

Documentation Status Discord Build Status Code Style: Black

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

Built Distribution

File details

Details for the file adafruit-circuitpython-imageload-1.20.2.tar.gz.

File metadata

File hashes

Hashes for adafruit-circuitpython-imageload-1.20.2.tar.gz
Algorithm Hash digest
SHA256 f1052eeecdee6a89ea3cf4c65fb60728dcfb83a4ec06daf2b98c47dc3044b2c6
MD5 e35dc629e937e80a96cfe9e8800156be
BLAKE2b-256 ece9a01eba3ee951ca35550b1d9befc6e000228e1d4735ab332401967645e9a4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for adafruit_circuitpython_imageload-1.20.2-py3-none-any.whl
Algorithm Hash digest
SHA256 2368d0c8fb66aa25940901bff9ead87b4f30e50dc2ef8af37eb349c1d67dc6e5
MD5 f1fb30f8b75e7f2c6595318739c31c2a
BLAKE2b-256 63e82e38ffb8f938f695552b8716ba3fec6044d3b3400a56afd2b0b71eeabe55

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