Nightly Punk Masters

    light-display

    1.0.0 • Public • Published

    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.

    Install

    npm i light-display

    DownloadsWeekly Downloads

    2

    Version

    1.0.0

    License

    MIT

    Last publish

    Collaborators

    • scott.gonzalez