Library for interacting with led-matrix-zmq
Project description
led-matrix-zmq-py
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4c5a8a7d5e5e5789c6ec383395dd06f984f52f90d3b85900c0df072115118517
|
|
| MD5 |
fbcd5749b26cb19ca4df34600d0ca548
|
|
| BLAKE2b-256 |
5db94ad99c657bd55ac1d97e4d482cf7f2f7cf36ba692a49a09bef84e9632cbb
|
File details
Details for the file led_matrix_zmq-1.0.0rc3-py3-none-any.whl.
File metadata
- Download URL: led_matrix_zmq-1.0.0rc3-py3-none-any.whl
- Upload date:
- Size: 18.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.5.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ee6e0fd5fd09461b7c2365fd88a5cbf9aea33ab3537bd0221ae1fc74bf40548b
|
|
| MD5 |
dac5d34f705376d49dea378d4cf728b1
|
|
| BLAKE2b-256 |
419bc6bc1475d70fdeb2cc332e0483e10ea5dee0da69fa9efda147571b2d712a
|