8 releases

Uses new Rust 2024

0.6.0 Nov 5, 2025
0.5.0 Oct 18, 2023
0.4.0 Oct 27, 2022
0.3.4 Oct 27, 2022
0.3.3 May 8, 2021

#134 in Multimedia

MIT license

25KB
529 lines

rust-dmx

This library aims to provide a generic trait for a DMX port. It currently supports:

  • Enttec DMX USB Pro (and compatible FTDI-based units such as made by DMXKing).
  • ArtNet
  • an offline placeholder

Usage

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.

Dependencies

~3–14MB
~127K SLoC