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

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for led_matrix_zmq-1.0.0rc3.tar.gz
Algorithm Hash digest
SHA256 4c5a8a7d5e5e5789c6ec383395dd06f984f52f90d3b85900c0df072115118517
MD5 fbcd5749b26cb19ca4df34600d0ca548
BLAKE2b-256 5db94ad99c657bd55ac1d97e4d482cf7f2f7cf36ba692a49a09bef84e9632cbb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for led_matrix_zmq-1.0.0rc3-py3-none-any.whl
Algorithm Hash digest
SHA256 ee6e0fd5fd09461b7c2365fd88a5cbf9aea33ab3537bd0221ae1fc74bf40548b
MD5 dac5d34f705376d49dea378d4cf728b1
BLAKE2b-256 419bc6bc1475d70fdeb2cc332e0483e10ea5dee0da69fa9efda147571b2d712a

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