1.1.1 • Published 9 years ago

luxafor v1.1.1

Weekly downloads
4
License
MIT
Repository
github
Last release
9 years ago

node-luxafor

Control your Luxafor notification light via node.js!

NPM

Installation

We depend on the node.js usb library, which has some dependencies of its own.

https://github.com/nonolith/node-usb

npm install luxafor

Usage

var Luxafor = require("luxafor")();

Luxafor.init(function () {
        Luxafor.setLuxaforColor(Luxafor.colors.blue, function () {
	});
});

You will probably need to sudo execute your test script else you will get LIBUSB_ERROR_ACCESS.

API

###setColor(r, g, b, callback) Set Luxafor to provided r, g, b values (0-255).

###setLuxaforColor(luxaforColor, callback) Set Luxafor to a preset Luxafor color (see Luxafor.colors).

###flashColor(r, g, b, callback) Flash the Luxafor to provided r, g, b values (0-255).

Troubleshooting

Help, I get LIBUSB_ERROR_ACCESS. Sudo run your script.

Help, I get LIBUSB_ERROR_ACCESS even with sudo and I'm on a Mac. See https://github.com/nonolith/node-usb/issues/30 :(

1.1.1

9 years ago

1.0.0

9 years ago

0.0.3

9 years ago

0.0.1

9 years ago