Giter Site home page Giter Site logo

thalusa / ddc-rs Goto Github PK

View Code? Open in Web Editor NEW
6.0 0.0 1.0 140 KB

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

License: MIT License

Rust 62.71% TypeScript 37.29%
ddc ddc-ci ddcci nodejs

ddc-rs's Introduction

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

ddc-rs's People

Contributors

thalusa avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Forkers

super-bunny

ddc-rs's Issues

get_displays return no display

Hello,

I'm very new to Rust so excuse me if I missed something, but I just tried your crate on Windows, and the get_displays() function returns no display, despite my computer being connected to a DDC/CI compatible display (I tried using a software to control it via DDC/CI and I can change the brightness, so confirmed that it indeed works).

get_displays(false)?.len() is zero.

Also trying to do get_brightness(0) spits a "There is no display with id: 0"

Can you guess why ?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.