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.1.0.tar.gz (30.8 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.1.0-py3-none-any.whl (18.9 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for led_matrix_zmq-1.1.0.tar.gz
Algorithm Hash digest
SHA256 9c0d8ac1f1c82a09bc827007f43150d9f4412a4f0e25657a40310d235868c5e5
MD5 833e2b7da7e80c34171a68a283399f0c
BLAKE2b-256 d4283c66c3f26447ff1752518b582765a008984e23fbdb7e1a019664a6d3399a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for led_matrix_zmq-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 785efe3255f16a7ec55729d2fb995bf03ddd88de24afe9832c0d2ffdf7d4539e
MD5 ab1480e20ccfe4ad016ff7515b74b3ff
BLAKE2b-256 6445c771e16e98c5ef401616766217847944b7ad129e3ad85ff4b39994f0c8c5

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