ddc-rs
TypeScript icon, indicating that this package has built-in type declarations

0.1.9 • Public • Published

ddc-rs

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

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);
}

Readme

Keywords

Package Sidebar

Install

npm i ddc-rs

Weekly Downloads

1

Version

0.1.9

License

MIT

Unpacked Size

50.4 kB

Total Files

15

Last publish

Collaborators

  • thalusa