ddc-node-rs

Crates.ioddc-node-rs
lib.rsddc-node-rs
version2.0.0
sourcesrc
created_at2022-07-08 12:30:25.528245
updated_at2022-07-08 12:30:25.528245
descriptionDDC/CI high level library for Rust (cross platform)
homepagehttps://github.com/ThalusA/ddc-node-rs#readme
repositoryhttps://github.com/ThalusA/ddc-node-rs
max_upload_size
id621782
size95,268
ThalusA (ThalusA)

documentation

https://docs.rs/ddc-node-rs

README

ddc-node-rs

ddc-node-rs is a cross-platform Node package for controlling monitors with DDC/CI.

Documentation

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

Examples

import { Display, DisplayManager, VCPFeatures } from "ddc-node-rs";

const displays = new DisplayManager().collect();

for (const display of displays) {
    const vcp_feature = display.getVcpFeature(VCPFeatures.ImageAdjustment.Luminance);
    console.info(`Display at index ${display.index} have a brightness value of`);
    console.info(vcp_feature);
    display.setVcpFeature(VCPFeatures.ImageAdjustment.Luminance,
                          vcp_feature.currentValue + 5);
}
Commit count: 78

cargo fmt