2.1.0 • Published 6 years ago

node-luxafor v2.1.0

Weekly downloads
5
License
MIT
Repository
github
Last release
6 years ago

node-luxafor

Control your Luxafor light

CircleCI NPM Coverage Status Dependencies MIT License

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

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request

License

MIT

2.1.0

6 years ago

2.0.4

6 years ago

2.0.3

6 years ago

2.0.1

7 years ago

2.0.0

7 years ago

1.0.6

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago

0.0.1

9 years ago