Skip to content
This repository has been archived by the owner on Jan 11, 2023. It is now read-only.

ThalusA/ddc-rs

Repository files navigation

ddc-rs

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

Warning

This repository will be unmaintained in favor of the async version, please check: https://github.com/ThalusA/ddc-node

Documentation

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

Examples

import { Display, DisplayManager, VCPFeatures } from "ddc-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);
}

About

A high-level library for Node DDC/CI written in Rust for efficient and fast control of hardware. Check the async version: https://github.com/ThalusA/ddc-node

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published