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::{getenhanceddisplays, getbrightness, setbrightness, doesdisplaysupport_ddc};

// index in array is the id of the display fn main() -> Result<(), std::io::Error> { for id in 0..getenhanceddisplays(false)?.len() { let value = getbrightness(id)?.value(); setbrightness(id, value + 2).unwrap(); } Ok(()) } ```

NodeJS

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

for (const displayinfo of Display.info()) { const display = new Display(displayinfo.id); const { value } = display.getbrightness(); display.setbrightness(value + 2); } ```