displaypad-driver package
displaypad-driver provides a thread-safe, high-performance driver for the Mountain DisplayPad device.
Acknowledgments
Performance optimizations, dual-interface transport handling, initialization handshakes, and input report interleaving were built with inspiration from ramisotti13-eng/BaseCamp-Linux.
Modules
transport.py— Low-level interface opener (open_interfaces,init_handshake_ctrl,close_interfaces). Claims Interface 1 (PyUSB display bulk transfer endpoint0x02) and Interface 3 (hidapicommand/event endpoint), handles temporary IF0 kernel driver detachment to send HIDSET_IDLEandSET_REPORTcommands.device.py— Thread-safeDisplayPadmanager.upload_button(key_index, bgr_pixels)— Uploads a 102×102 BGR tile to a specific key slot (0–11) with non-blocking HID report interleaving.upload_panel(tiles_bgr)— Uploads 12 tile payloads in batch.poll_key(timeout)— Non-blocking polling returningpressed,released, andcurrentkey lists.set_brightness(percent)— Adjusts backlight brightness (0–100%).
protocol.py— VID/PID constants, payload headers, INIT/IMG templates, andget_pressed_keysbitmask parser.image.py— Image processing utilities:image_to_bgr102(img, rotation)— Converts PIL Image to 102×102 BGR bytes with 0°/90°/180°/270° rotation.split_image_to_tiles(img, rotation)— Slices full-panel 612×204 images into 12 BGR tile payloads.split_gif_to_tiles(gif)&load_gif_frames(gif)— Animated GIF parser.make_label_icon()&make_folder_icon()— Dynamic text label and icon generator.
For a usage example, see driver_example.py.
Metadata
Release files for displaypad-driver 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_driver-1.0.0.tar.gz | 7.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| displaypad_driver-1.0.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 17.1 kB
Release files / displaypad_driver-1.0.0.tar.gz
| Download URL | displaypad_driver-1.0.0.tar.gz |
|---|---|
| Size | 7.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e8b8ae608732bf191dd291f2bafca5ea2a41e130a69e14cbba91f5cdd3475062
|
|
BLAKE2b-256 checksum How to use checksums |
0e88864a0c7f26fa925001625083469ed7d4ca038585cd07788efea9940b1267
|
| 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_driver-1.0.0-py3-none-any.whl
| Download URL | displaypad_driver-1.0.0-py3-none-any.whl |
|---|---|
| Size | 9.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a2144d40ea2607a69a4cf84ae19bd88fb4938d6f2e85b36b0e8253d3db879383
|
|
BLAKE2b-256 checksum How to use checksums |
0c16bf950d550d017cefe732cb9360bd7994d4e96ecb1ab349375382ee4004ff
|
| 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
|