Crates.io | rust_dmx |
lib.rs | rust_dmx |
version | 0.5.0 |
source | src |
created_at | 2021-05-07 09:01:12.474694 |
updated_at | 2023-10-18 07:08:19.874637 |
description | Control of DMX-512 lighting control hardware. |
homepage | |
repository | https://github.com/generalelectrix/rust-dmx |
max_upload_size | |
id | 394174 |
size | 25,709 |
This library aims to provide a generic trait for a DMX port. The library only currently supports the Enttec USB DMX Pro (the original, not the 2-universe MkII). It also provides an offline port placeholder.
Use the available_ports
function to get a listing of all available ports.
The port must be opened before use.
use rust_dmx::{available_ports, DmxPort};
let port = available_ports()?[0];
port.open()?;
port.write(&[0, 1, 2, 3][..])?;
Ports can be serialized/deserialized, maintaining their identity. They will need to be re-opened after deserialization.