Crates.io | contourwall |
lib.rs | contourwall |
version | 0.1.0 |
source | src |
created_at | 2024-06-19 12:00:38.109341 |
updated_at | 2024-06-19 12:00:38.109341 |
description | Provides a high-level interface for controlling the Contour Wall |
homepage | |
repository | |
max_upload_size | |
id | 1276802 |
size | 13,859 |
High-level Rust interface to control the Contour Wall
The Rust wrapper library wrapping the cw-core library, which provides a low-level interface to control the Contour wall. The examples of using rust wrapper is put at the end of the lib.rs file.
let Ok(mut cw) = ContourWall::single_new_from_port(String::from("COM3"), 2_000_000)
else {
panic!("Port does not exist");
};
//slowly faded to white
for i in 0..255 {
cw.pixels
.slice_mut(s![.., .., ..])
.assign(&Array::from(vec![i, i, i]));
cw.show(10, true);
}