Control your Luxafor light
npm i node-luxafor
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()
- 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