| Crates.io | lasercube-core |
| lib.rs | lasercube-core |
| version | 0.1.0 |
| created_at | 2025-03-05 23:15:38.488164+00 |
| updated_at | 2025-03-05 23:15:38.488164+00 |
| description | A library providing high-level interfaces for discovering and controlling LaserCube devices |
| homepage | |
| repository | |
| max_upload_size | |
| id | 1580166 |
| size | 40,981 |
Core types and constants for the LaserCube network protocol.
lasercube-core provides the fundamental data structures and protocol
definitions for communicating with LaserCube devices.
use lasercube_core::{
Command, SampleData, Point,
consts::MAX_POINTS_PER_MESSAGE,
};
// Create a point
let point = Point::from_normalized(0.0, 0.0, 1.0, 0.5, 0.0);
// Create a sample data packet
let sample_data = SampleData::new(0, 0, vec![point]);
// Create a command to send the sample data
let command = Command::SampleData(sample_data);
This crate provides the basic building blocks for communicating with LaserCube devices, which are physical laser devices that can present safety risks if misused. When implementing network communication using this crate, please ensure appropriate safety measures are in place.
Licensed under either of:
at your option.