0.1.1 • Published 6 years ago
node-rgb-net v0.1.1
node-rgb-net
Simple Node JS wrapper for RGB.NET by DarthAffe
Install
npm install node-rgb-net
Usage
var { getRgbDevices, setColor, DEVICE_TYPE } = require("./index.js")
getRgbDevices(DEVICE_TYPE.KEYBOARD, (err, data) => {
console.log(data)
})
setColor({deviceType: DEVICE_TYPE.KEYBOARD, color: '#5500FF'}, (err, data) => {
if (err) {
console.log("Oops! Something happened")
} else {
console.log("LIGHT ON!")
}
})
Special Thanks to
DarthAffe - Creator of RGB.NET
License
MIT © Riva Farabi