node-cue-sdk-2
This is a fork of the great package, node-cue-sdk, by Yannicked. Please check his version out before continuing!
https://www.npmjs.com/package/cue-sdk-node
I have made only slight modifications to his code to fit my needs.
Modifications
- Updated to version 2.18.127 of the CUE SDK
- Manually include SDK files, point to version 2015, don't download the ZIP
- Include support for "releasing" and "renewing" they keyboard. This allows CUE to take over after you're done, if you have a single node process running.
Original Readme Below:
Node.js Corsair Cue SDK wrapper
node-cue-sdk
is a Node.js addon for loading and and using the Cue SDK in
pure JavaScript.
Documentation
Example with asynchonous functions
var CueSDK = ;var cue = ;// The CueSDK.set function can also work asynchonously, just add a function to the arguments and it'll be asynchonouscue;cue; // Set A to red, S to green, and D to blue// fade from black [0, 0, 0] to cyan [0, 255, 255] in 1000mscue;
Example with synchonous functions
var CueSDK = ;var cue = ;cue; // Set the W key to #FFFFFF aka white// You can set multiple colors at the time!cue; // Set A to red, S to green, and D to blue// Special keys/lights are also supported!cue; // Make the Corsair logo yellow// To turn off all ledscueclear;
Requirements
- Windows (Linux and Mac OSX are currently not supported by the CueSDK)
- Node.js
5.0.0
or higher
Installation
Make sure you've installed all the necessary build tools, then run this command in the source directory:
$ npm install cue-sdk-node