A wrapper around the serial library to send DMX data over a serial port via the Open-DMX(RS-485) protocol
```rust use open_dmx::DMXSerial;
fn main() { let mut dmx = DMXSerial::open("COM3").unwrap(); dmx.setchannels([255; 512]); dmx.setchannel(1, 0).unwrap(); } ```
DMXSerial
updates it's 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()