Nurturing Pluto's Martians
Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

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

install

npm i node-luxafor

Downloadsweekly downloads

25

version

2.1.0

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
  • avatar