https://github.com/thalusa/ddc-node
A high-level DDC/CI library for Node written in Rust for efficient and fast control of displays, monitors and DDC-enabled hardware
https://github.com/thalusa/ddc-node
cross-platform ddc ddc-ci ddcci nodejs rust
Last synced: 11 months ago
JSON representation
A high-level DDC/CI library for Node written in Rust for efficient and fast control of displays, monitors and DDC-enabled hardware
- Host: GitHub
- URL: https://github.com/thalusa/ddc-node
- Owner: ThalusA
- License: agpl-3.0
- Created: 2022-08-05T22:52:18.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2024-07-07T09:36:44.000Z (almost 2 years ago)
- Last Synced: 2025-07-07T06:11:21.166Z (12 months ago)
- Topics: cross-platform, ddc, ddc-ci, ddcci, nodejs, rust
- Language: Rust
- Homepage: https://www.npmjs.com/package/@ddc-node/ddc-node
- Size: 1.82 MB
- Stars: 10
- Watchers: 0
- Forks: 3
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# `@ddc-node/ddc-node`

`@ddc-node/ddc-node` is a high-level [DDC/CI](https://en.wikipedia.org/wiki/Display_Data_Channel) library for Node written in Rust for efficient and fast control of hardware.
## Usage
```typescript
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);
}
```