@ddc-node/ddc-node
TypeScript icon, indicating that this package has built-in type declarations

1.0.3 • Public • Published

@ddc-node/ddc-node

https://github.com/ThalusA/ddc-node/actions

@ddc-node/ddc-node is a high-level DDC/CI library for Node written in Rust for efficient and fast control of hardware.

Usage

import { DisplayManager, VCPFeatureCode } from "@ddc-node/ddc-node";

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

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

Package Sidebar

Install

npm i @ddc-node/ddc-node

Weekly Downloads

3

Version

1.0.3

License

AGPL-3.0-or-later

Unpacked Size

51.9 kB

Total Files

5

Last publish

Collaborators

  • thalusa