Skip to content

daveiator/open-dmx

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

open_dmx   Latest Release Documentation License

A wrapper around the serialport library to send DMX data over a serial port via the Open-DMX(RS-485) protocol


Basic Setup

use open_dmx::DMXSerial;

fn main() {
    let mut dmx = DMXSerial::open("COM3").unwrap();
    dmx.set_channels([255; 512]);
    dmx.set_channel(1, 0).unwrap();
}

DMXSerial updates its channels automatically to the Serial Port for a stable connection. For strobe effects DMXSerial.update() can be used, which blocks the main thread until a packet is sent over serial.

The automatic sending can also be disabled with DMXSerial::open_sync(path) or DMXSerial.set_sync()

Works with COM-Ports on Windows and TTYPorts on Unix systems.

Dependencies

For linux pkg-config and libudev are required.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages