hello-lights

0.3.1 • Public • Published

hello-lights

npm Build Status Dependency Status devDependency Status License

Commands to control a traffic light

Works with a Cleware USB traffic light.

Install

$ npm install hello-lights --save

Usage

Issue commands to control a connected traffic light:

const {Commander} = require('hello-lights');

let commander = new Commander();

// keeps flashing the red light in 400ms intervals
commander.run('twinkle red 400');

For the Commander class documentation look here.

Commands

Check out the available commands here. For multiple traffic lights (Commander.multi) look here.

Documentation

For the documentation look here.

License

Licensed under the MIT license.

Readme

Keywords

none

Package Sidebar

Install

npm i hello-lights

Weekly Downloads

26

Version

0.3.1

License

MIT

Unpacked Size

195 kB

Total Files

46

Last publish

Collaborators

  • jordao