ArmyOfAnarchists

Untitled

Jan 31st, 2016
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. var CueSDK = require('cue-sdk-node');
  2.  
  3. var cue = CueSDK();
  4.  
  5. cue.set('W', 255, 255, 255); // Set the W key to #FFFFFF aka white
  6.  
  7. // You can set multiple colors at the time!
  8. cue.set([
  9. ['A', 255, 0, 0],
  10. ['S', 0, 255, 0],
  11. ['D', 0, 0, 255]
  12. ]); // Set A to red, S to green, and D to blue
  13.  
  14. // Special keys/lights are also supported!
  15. cue.set('Logo', 255, 255, 0); // Make the Corsair logo yellow
  16.  
  17. // To turn off all leds
  18. cue.clear();
Advertisement
Add Comment
Please, Sign In to add comment