displaypad-lib
Python library for controlling the Mountain DisplayPad. Built on displaypad-driver.
For full documentation, see the project wiki.
What's included
DisplayPad— main class. Manages pages, keys, and the update loop.Key(base class) — subclass and implementrender(ctx). Override lifecycle hooks (on_press,on_release,on_double_press,on_long_press,on_tick,on_mount) as needed.- Built-in key types:
GifKey,IconKey,LabelKey,FramerateLimitedKey,LoggerKey. Page/PageManager— named 12-key layouts with optional auto-timeout navigation.KeyContext— drawing context passed torender(), wrapping a per-key PIL canvas.
Quick start
from displaypad_lib import DisplayPad, LabelKey
pad = DisplayPad()
pad[0] = LabelKey("Hello", bg_color="navy")
try:
while True:
pad.update()
except KeyboardInterrupt:
pass
finally:
pad.disable()
For usage examples, see lib_example.py and clock.py.
Acknowledgments
Multi-page layout engine design, auto-timeout page transitions, and responsive async rendering were built with inspiration from ramisotti13-eng/BaseCamp-Linux.
Metadata
Release files for displaypad-lib 2.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-2.0.0.tar.gz | 11.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| displaypad_lib-2.0.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 24.7 kB
Release files / displaypad_lib-2.0.0.tar.gz
| Download URL | displaypad_lib-2.0.0.tar.gz |
|---|---|
| Size | 11.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d00750c08e2af63ae1e84772d5677b5cb77172cab57cef34a041e7c958c19e55
|
|
BLAKE2b-256 checksum How to use checksums |
ebca85cebaff0f35e76496da4d9994419357f511576d917e8b7f633d0e0c4049
|
| 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-2.0.0-py3-none-any.whl
| Download URL | displaypad_lib-2.0.0-py3-none-any.whl |
|---|---|
| Size | 13.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d4f840f42eeb3f07106ad51e878f920514a7e9f7b2ac5a948d8564fa1c213a21
|
|
BLAKE2b-256 checksum How to use checksums |
6b1e57c48bb600edb218da90955aa250af504a7116357bb8b9478b6dddde8b1e
|
| 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
|