rgb-globe-api
v1.0.4
Published
An API to control a rgb globe
Downloads
3
Readme
rgb-globe-api
An API to control a rgb globe
Installation
npm install rgb-globe-api --save
Usage
var API = require('rgb-globe-api');
var api = new API({id:'meg'});
Promise.resolve().then(() => {
return api.color({color:'red', priority:'!', duration:3000});
})
.then(() => {
return api.blink({color:'green', duration:3000});
})
.then(() => {
return api.flash({color:'blue', duration:3000});
})
.then(() => {
return api.random({duration:3000});
})
.catch((error) => {
console.log(error);
});