light-display
v1.0.0
Published
Customized light displays using Johnny-Five
Downloads
3
Maintainers
Readme
Johnny-Five Light Display
LightDisplay
is a Johnny-Five module for controlling a set of lights. Designed to manage everything from a few individual LEDs to large light displays like custom Christmas decorations.
Example
const five = require('johnny-five')
const LightDisplay = require('light-display')
const board = new five.Board()
board.on('ready', () => {
const display = new LightDisplay({
segments: [2, 3, 4]
})
display.start('chase')
})
Animations
Four animations come bundled with LightDisplay
:
- blink: Toggles all segments simultaneously.
- chase: Toggles segments in order from first to last so the lights "chase" each other.
- constant: Turns on all segments (doesn't actually animate).
- sparkle: Toggles segments randomly.
License
Copyright Scott González. Released under the terms of the MIT license.