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.23.4.tar.gz
.
File metadata
- Download URL: adafruit_circuitpython_imageload-1.23.4.tar.gz
- Upload date:
- Size: 93.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 259b8b1c4703c2f1df7a8e2bd1b84803f0c41d4508c10f33cc1da9334cd1ad77 |
|
MD5 | fcf209100b36b8770892ea98621f27fb |
|
BLAKE2b-256 | c75f86dc67ddd3fddaa82436df1eae267680f24af9dd8e740e841de590b4c7c8 |
File details
Details for the file adafruit_circuitpython_imageload-1.23.4-py3-none-any.whl
.
File metadata
- Download URL: adafruit_circuitpython_imageload-1.23.4-py3-none-any.whl
- Upload date:
- Size: 27.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cf4244a6ed4acf683f41ee7a7317651a326ce23531fb0da208e67dd3a075edc1 |
|
MD5 | 456bfc8940e5da40d48c530f06775de2 |
|
BLAKE2b-256 | 1f8adbe714ee399de733a8a2a67e069fa87b33819a5171f5bef9c91e6a5fb0c6 |