thing-js
Version:
A framework provides easiest and fastiest way to build devices.
14 lines (12 loc) • 354 B
JavaScript
'use stric';
module.exports = {
/**
* The run method is the start point of the extension.
* @param {Object} params The extension parameters.
* @param {Led} params.modules The LED instance.
* @param {Number} params.interval The blinking rate.
*/
run: function(params) {
params.modules[0].blink(params.interval);
}
}