| Crates.io | theymx |
| lib.rs | theymx |
| version | 0.1.1 |
| created_at | 2025-12-29 14:18:32.753843+00 |
| updated_at | 2025-12-29 14:29:14.115325+00 |
| description | A small Rust library for handling DMX data. |
| homepage | |
| repository | https://github.com/BaukeWestendorp/theymx |
| max_upload_size | |
| id | 2010657 |
| size | 36,257 |
This is a small crate for working with DMX concepts like addresses, channels, universes and values.
It started out as a few internal modules for some of my other projects like zeevonk and radiant. I thought I'd share it with the world as it has been very useful for me.
use theymx::{Address, Channel, Multiverse, Universe, UniverseId, Value};
fn main() {
let mut mv = Multiverse::new();
let universe_id = UniverseId::new(1).unwrap();
let universe = Universe::new();
mv.create_universe(universe_id, universe);
let addr = Address::new(universe_id, Channel::new(1).unwrap());
mv.set_value(&addr, Value::from(128u8));
let v = mv.get_value(&addr).unwrap();
println!("value at {} is {}", addr, u8::from(v));
}
serde: Implement serialization and deserialization using the serde crate.Feel free to start an issue to discuss about missing features or found bugs, it's OSS after all!