Skip to main content

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 endpoint 0x02) and Interface 3 (hidapi command/event endpoint), handles temporary IF0 kernel driver detachment to send HID SET_IDLE and SET_REPORT commands.
  • device.py — Thread-safe DisplayPad manager.
    • 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 returning pressed, released, and current key lists.
    • set_brightness(percent) — Adjusts backlight brightness (0–100%).
  • protocol.py — VID/PID constants, payload headers, INIT/IMG templates, and get_pressed_keys bitmask 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.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for displaypad-driver 1.0.1
File Size Uploaded
displaypad_driver-1.0.1.tar.gz 7.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for displaypad-driver 1.0.1
File Interpreter ABI Platform
displaypad_driver-1.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 17.7 kB

Release files / displaypad_driver-1.0.1.tar.gz

Download URL displaypad_driver-1.0.1.tar.gz
Size 7.8 kB
Tags Source
SHA-256 checksum
How to use checksums
838aba1feada113b3f182a82c98d64f171a0a823772c309ed7a7ff02a398ec9d
BLAKE2b-256 checksum
How to use checksums
d0f4989f4f482e76824761f833f1cb2af22db93f3959d2d7c0b55c09518a14ad
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_driver-1.0.1-py3-none-any.whl

Download URL displaypad_driver-1.0.1-py3-none-any.whl
Size 10.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9e20b656ca96f1868705569ae59b4d11924e9218ded4947ec91f2f17da154e89
BLAKE2b-256 checksum
How to use checksums
e5545e6cd254612cdc7e7e48ca97fc322442dc60cd9b3339b9950b9f7e71f8e6
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 history Release notifications | RSS feed

2.0.0

2 release files

1.2.0

2 release files

1.1.0

2 release files

This release

1.0.1 This release

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page