ddc-enhanced-rs

ddc-enhanced-rs is a cross platform Rust crate and Node package for controlling monitors with DDC/CI.

Documentation

Rust: https://docs.rs/ddc-enhanced-rs

NodeJS: https://github.com/ThalusA/ddc-enhanced-rs/blob/master/index.d.ts

Examples

Rust

```rust use ddcenhancedrs::EnhancedDisplay;

fn main() { for displayinfo in EnhancedDisplay::listinfos() { let mut display = EnhancedDisplay::get(displayinfo.id).unwrap(); let value = display.getbrightness().unwrap().value(); display.set_brightness(value + 2).unwrap(); } } ```

NodeJS

```javascript import Display from "ddc-enhanced-rs";

for (const displayinfo of Display.list()) { const display = new Display(displayinfo.id); const { value } = display.brightness; display.set_brightness(value + 2); } ```