displaypad-lib package
displaypad-lib provides a high-level, multi-page library for interacting with the Mountain DisplayPad device, built on top of displaypad-driver.
Acknowledgments
Multi-page layout engine design, auto-timeout page transitions, and responsive async rendering were built with inspiration from ramisotti13-eng/BaseCamp-Linux.
Key Features
- Multi-Page Layout Engine (
Page,PageManager): Create named 12-key pages with navigation stacks and auto-timeout transitions (mode: "after" | "idle"). See docs/lib/page.md. - Key Abstractions (
displaypad_lib.key):Key(base class) — Implementrender(ctx: KeyContext)and optional lifecycle hooks (on_mount,on_press,on_release,on_double_press,on_long_press,on_tick).GifKey— Play animated GIFs at native frame rates with rotation support.IconKey— Static image icons with aspect-ratio scaling and margins.LabelKey— Dynamic centered text labels with customizable colors.FramerateLimitedKey— Rate-limited key rendering.LoggerKey— Diagnostics key logging presses and releases.
- Drawing Context (
KeyContext):- Key-relative drawing primitives:
center_text,text,rectangle,ellipse,line,polygon,arc,fill,clear,paste_image. Supports bothcolorandfillparameter aliases.
- Key-relative drawing primitives:
- Async Queue & Hybrid Batch Rendering:
- Background thread drains key updates with frame deduplication. Single-key updates use fast per-button tile uploads; layout changes automatically batch update the full panel.
For usage examples, see lib_example.py and clock.py.
Metadata
Release files for displaypad-lib 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| displaypad_lib-1.0.0.tar.gz | 9.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| displaypad_lib-1.0.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 20.7 kB
Release files / displaypad_lib-1.0.0.tar.gz
| Download URL | displaypad_lib-1.0.0.tar.gz |
|---|---|
| Size | 9.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
01d7e210c316df8ee30040b77046670afb542c6c114bf73345c08f2cb95d9a1c
|
|
BLAKE2b-256 checksum How to use checksums |
26ec05166052507855319e92e3b3f151071ab965aa41e9b922ffa8ef54462c28
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.3.1 CPython/3.14.6 Linux/7.1.8-200.nobara.fc44.x86_64
|
Release files / displaypad_lib-1.0.0-py3-none-any.whl
| Download URL | displaypad_lib-1.0.0-py3-none-any.whl |
|---|---|
| Size | 11.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8dcd0e72b3761624bfdb47e210f0f55b4ee16467fe97dc07b99ebbe3317f1e7b
|
|
BLAKE2b-256 checksum How to use checksums |
5bf5a9a01449c756cf02a92f72b08bd68c1cf56239a629423045b60354c4985e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.3.1 CPython/3.14.6 Linux/7.1.8-200.nobara.fc44.x86_64
|