Crates.io | ddc-node-rs |
lib.rs | ddc-node-rs |
version | 2.0.0 |
source | src |
created_at | 2022-07-08 12:30:25.528245 |
updated_at | 2022-07-08 12:30:25.528245 |
description | DDC/CI high level library for Rust (cross platform) |
homepage | https://github.com/ThalusA/ddc-node-rs#readme |
repository | https://github.com/ThalusA/ddc-node-rs |
max_upload_size | |
id | 621782 |
size | 95,268 |
ddc-node-rs
is a cross-platform Node package for controlling monitors with
DDC/CI.
https://github.com/ThalusA/ddc-node-rs/blob/master/index.d.ts
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);
}