contourwall 0.1.0

Provides a high-level interface for controlling the Contour Wall
Documentation
  • Coverage
  • 70%
    7 out of 10 items documented2 out of 7 items with examples
  • Size
  • Source code size: 13.85 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 500.44 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 25s Average build duration of successful builds.
  • all releases: 25s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • WouterPennings

Rust wrapper

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);
}

How to run

  1. Run the demo test of rust wrapper with: cargo test
  2. test can be run individually with the syntax: cargo test <test_function_name>