https://github.com/knifa/led-matrix-zmq-py
Python library for interacting with led-matrix-zmq-server.
https://github.com/knifa/led-matrix-zmq-py
Last synced: 4 months ago
JSON representation
Python library for interacting with led-matrix-zmq-server.
- Host: GitHub
- URL: https://github.com/knifa/led-matrix-zmq-py
- Owner: Knifa
- License: gpl-3.0
- Created: 2024-12-03T21:44:55.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-08-09T02:48:14.000Z (10 months ago)
- Last Synced: 2025-09-24T21:52:45.871Z (9 months ago)
- Language: Python
- Homepage:
- Size: 54.7 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# led-matrix-zmq-py

A Python library for interacting with [led-matrix-zmq-server](https://github.com/knifa/led-matrix-zmq-server).
## Installation
The package is called `led-matrix-zmq` and is available on [PyPI](https://pypi.org/project/led-matrix-zmq/) as is tradition.
## Usage
Check out the [examples](./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.
```python
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)
)
```