piglow-system
Version:
several visualisation utilities for your system
16 lines (11 loc) • 507 B
JavaScript
var piglow = require('piglow');
var depugger = require('depugger');
function Module(piglowInterface, options) {
options = options || {};
this._debug = depugger({debug: !!options.debug, name: this.name()});
this._piglowInterface = piglowInterface;
this._interval = options.interval || 1000;
this._brightness = options.brightness ? piglow.processValue(options.brightness) : 10;
this._debug('initialized with: ' + JSON.stringify(options));
}
module.exports = Module;