| Crates.io | udmx |
| lib.rs | udmx |
| version | 0.1.0 |
| created_at | 2025-10-28 10:40:55.647268+00 |
| updated_at | 2025-10-28 10:40:55.647268+00 |
| description | USB DMX interface library for Anyma uDMX. |
| homepage | |
| repository | https://github.com/m-vz/udmx |
| max_upload_size | |
| id | 1904532 |
| size | 31,108 |
A Rust library for controlling DMX fixtures via the Anyma uDMX USB interface.
use udmx::UDmx;
fn main() -> Result<(), Box<dyn std::error::Error>> {
let dmx = UDmx::new()?;
// Set a single channel
dmx.set_channel(0, 255)?;
// Set multiple channels at once (starting at the index given)
let values = [255, 128, 64, 32];
dmx.set_channels(3, &values)?;
Ok(())
}
The examples directory contains some fixture implementations for reference.
[!NOTE] These examples likely won't work with your specific fixtures. Consult the fixture's manual for the correct channel numbers and values.
rgb_fixture.rs: Demonstrates controlling an RGB DMX fixturemoving_head_fixture.rs: Demonstrates controlling a moving head light fixturefog_machine_fixture.rs: Demonstrates controlling a fog machine