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.0.tar.gz (30.0 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.0-py3-none-any.whl (18.8 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for led_matrix_zmq-1.0.0.tar.gz
Algorithm Hash digest
SHA256 873af5268d550219d409d33b977cabcaa97aeefe8f0b0fe96c73629dd8d9eb5e
MD5 882956337ad32c9abff215a26cedcd42
BLAKE2b-256 e24b1d5a3eb893eee1996a85ce2f4c13c6ef2d364e2d510d2b9509c54af3d005

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for led_matrix_zmq-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1bb8bd04ec871bfa45e82581b4a1ab320cdc7c26c91a54b95d4c648821b67e17
MD5 5334821043d07ef005b2dc7482e897d6
BLAKE2b-256 c8769da6473815bb1927c1a048c616e908ed8f4ca408c5f652afc8e580cadd21

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