UNPKG

rgb-led-matrix

Version:

Universal RGB Matrix controller for Node.js. Supports realtime frame streaming (eg. Ambilight). BlinkStick RGB LED controller given as example.

32 lines (26 loc) 645 B
//Device driver for Steelseries Gamesense controllers //Only the following methods are required to support any controller: //turnOff() - turns controller off //setColors() - sends RGB data to controller //getMaxSize()- Maximum number of LEDs supported var device = null; var busy = false; var MAX_SIZE = 500; module.exports = { getName: function() { return "GAMESENSE"; }, getMaxSize: function() { return MAX_SIZE; }, turnOff: function(fn) { if (fn != null) fn(); }, setColors: function(name, w, h, rgb_buffer) { } } //Any controller specific initialization code here. function start() { } start();