node-luxafor
v2.1.0
Published
Control your Luxafor light
Downloads
6
Readme
node-luxafor
Control your Luxafor light
Install
npm i node-luxafor
Usage
Import the library and create an instance
import Luxafor from 'node-luxafor';
const MyLight = new Luxafor();
Set Luxafor to blue
MyLight
.color(0, 0, 255)
.exec()
Set Luxafor to blue
MyLight
.color(0, 0, 255)
.exec()
Set Luxafor to green
MyLight
.hex('#00FF00')
.exec()
Fade Luxafor to Cyan
MyLight
.fade(0, 255, 255)
.exec()
Set a single LED to green
MyLight
.led(1)
.color(0, 255, 0)
.exec()
Contributing
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request