ddc-enhanced-rs
is a cross platform Rust crate and Node package for controlling monitors with DDC/CI.
Rust: https://docs.rs/ddc-enhanced-rs
NodeJS: https://github.com/ThalusA/ddc-enhanced-rs/blob/master/index.d.ts
```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(); } } ```
```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); } ```