Corsair iCUE lighting controller for NodeJS; a wrapper for the cue-sdk library (https://www.npmjs.com/package/cue-sdk). Easily control the lighting in your Corsair iCUE products through NodeJS, and act on macro key presses for compatible mice and keyboards.
- iCUE: https://www.corsair.com/icue
- Microsoft Visual C++ Redistributable:
npm i icue-controller
const icue = require("icue-controller");
const colour = [100, 0, 255, 50];
// Create new iCUE client
var client = new icue.Client();
client.on("connect", () => {
var devices = client.devices;
console.log(`Connected to ${devices.length} devices!`);
// Loop through connected devices
devices.forEach(device => {
// Set colour for all LEDs in device
device.setColour(colour);
// Log macro presses on iCUE compatible keyboards/mice
device.on("macrodown", key => {
console.log(`Macro key ${key} was pressed!`);
});
});
// Push changes to LEDs
client.update();
});
// Connect to iCUE
client.connect();
Make sure you always use Client#update
to push your changes to the devices' LEDs.
Coming Soon