node-luxafor

2.1.0 • Public • Published

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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 2.1.0
    1
    • latest

Version History

Package Sidebar

Install

npm i node-luxafor

Weekly Downloads

3

Version

2.1.0

License

MIT

Unpacked Size

18.7 kB

Total Files

5

Last publish

Collaborators

  • joshkloster
  • mattgoucher