@ddc-node/ddc-node is a high-level DDC/CI library for Node written in Rust for efficient and fast control of hardware.
import{DisplayManager,VCPFeatureCode}from"@ddc-node/ddc-node";constdisplays=await(newDisplayManager()).collect();for(constdisplayofdisplays){constvcp_feature=awaitdisplay.getVcpFeature(VCPFeatureCode.ImageAdjustment.Luminance);console.info(`Display at index ${display.index} have a brightness value of`);console.info(vcp_feature);awaitdisplay.setVcpFeature(VCPFeatures.ImageAdjustment.Luminance,vcp_feature.currentValue+5);}