Displays text using CircuitPython's displayio.
Project description
Introduction
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
Release history Release notifications | RSS feed
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
- Download URL: adafruit-circuitpython-imageload-1.20.2.tar.gz
- Upload date:
- Size: 74.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f1052eeecdee6a89ea3cf4c65fb60728dcfb83a4ec06daf2b98c47dc3044b2c6 |
|
MD5 | e35dc629e937e80a96cfe9e8800156be |
|
BLAKE2b-256 | ece9a01eba3ee951ca35550b1d9befc6e000228e1d4735ab332401967645e9a4 |
File details
Details for the file adafruit_circuitpython_imageload-1.20.2-py3-none-any.whl
.
File metadata
- Download URL: adafruit_circuitpython_imageload-1.20.2-py3-none-any.whl
- Upload date:
- Size: 26.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2368d0c8fb66aa25940901bff9ead87b4f30e50dc2ef8af37eb349c1d67dc6e5 |
|
MD5 | f1fb30f8b75e7f2c6595318739c31c2a |
|
BLAKE2b-256 | 63e82e38ffb8f938f695552b8716ba3fec6044d3b3400a56afd2b0b71eeabe55 |