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 Page. - 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 documentation, see the project wiki.
For usage examples, see lib_example.py and clock.py.
Metadata
Release files for displaypad-lib 1.1.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.1.0.tar.gz | 10.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| displaypad_lib-1.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 21.6 kB
Release files / displaypad_lib-1.1.0.tar.gz
| Download URL | displaypad_lib-1.1.0.tar.gz |
|---|---|
| Size | 10.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1f5b33570fe3a7cc306be40e658b512431f06bbee5923cfcd4e45a46dbb2c020
|
|
BLAKE2b-256 checksum How to use checksums |
8e9934d43fdc3bf40a36524b91191dd8cdb6fc3e4bfb2b37b7641e84543a8a46
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.1.4 CPython/3.12.3 Linux/6.17.0-1022-azure
|
Release files / displaypad_lib-1.1.0-py3-none-any.whl
| Download URL | displaypad_lib-1.1.0-py3-none-any.whl |
|---|---|
| Size | 11.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
538b7ffa1c254fe5dde2d62a3ac624ae2ed8c8bc86b8843a30f9fb09953cb451
|
|
BLAKE2b-256 checksum How to use checksums |
26128b28270c83e1763ceb34b81111a0902829c1c31de02dbb63ca494ab55901
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.1.4 CPython/3.12.3 Linux/6.17.0-1022-azure
|