Skip to main content

Library for interacting with led-matrix-zmq

Project description

led-matrix-zmq-py

PyPI - Version

A Python library for interacting with led-matrix-zmq-server.

Installation

The package is called led-matrix-zmq and is available on PyPI as is tradition.

Usage

Check out the examples directory for some example code!

You'll probably want to use the LmzMatrix class which is a higher-level construct around the LmzControl and LmzFrame classes.

from led_matrix_zmq import LmzMatrix

matrix = LmzMatrix(
    control_endpoint="ipc:///run/lmz-control.sock",
    frame_endpoint="ipc:///run/lmz-frame.sock",
)

print(f"Resolution: {matrix.config.width}x{matrix.config.height}")
print(f"Brightness: {matrix.brightness}")
print(f"Temperature: {matrix.temperature}")

matrix.brightness = 128
matrix.temperature = 2500

matrix.send_frame(
    b'\xFF' * (matrix.config.width * matrix.config.height * 4)
)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

led_matrix_zmq-1.0.0rc2.tar.gz (29.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

led_matrix_zmq-1.0.0rc2-py3-none-any.whl (18.1 kB view details)

Uploaded Python 3

File details

Details for the file led_matrix_zmq-1.0.0rc2.tar.gz.

File metadata

  • Download URL: led_matrix_zmq-1.0.0rc2.tar.gz
  • Upload date:
  • Size: 29.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.5.6

File hashes

Hashes for led_matrix_zmq-1.0.0rc2.tar.gz
Algorithm Hash digest
SHA256 fe973c0bf007d78620df1e30001ed1b7002084047a6e7d15dec6bad5096e0afb
MD5 bd4a84decd0bb70065dc715940f45a6e
BLAKE2b-256 424123803433703aeb2ff3368a6749b698d2fd80f102b0d4f9e50da8bdcbfc6f

See more details on using hashes here.

File details

Details for the file led_matrix_zmq-1.0.0rc2-py3-none-any.whl.

File metadata

File hashes

Hashes for led_matrix_zmq-1.0.0rc2-py3-none-any.whl
Algorithm Hash digest
SHA256 bd150d194ec29ffb1e1711fd6e955923eacb5456bcacfd3d203063289991c8d4
MD5 3cc1feb45cbb0e817a5af0de7392235c
BLAKE2b-256 80b9cc164790f11082477f3598be6f5831e46ba34af5d939191ec14bffc3c826

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page