Skip to content

Latest commit

 

History

55 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

node-novation-launchpad

Sample

A nodejs wrapper for a Novation Launchpad.

npm install novation-launchpad

It lets you treat the grid of LEDs as an 8x8 framebuffer, and animate them.

launchpad = require('launchpad')()

noiseDemo = ->
  for x in [0...8]
    for y in [0...8]
      red   = ~~(Math.random()*4)
      green = ~~(Math.random()*4)
      launchpad.set x,y,red,green

setInterval noiseDemo, 100

You can also capture button up/down input from the pad.

launchpad = require('launchpad')()

launchpad.onButtonDown = (x,y) ->
  console.log "#{x} x #{y} pressed"

launchpad.onButtonUp = (x,y) ->
  console.log "#{x} x #{y} released"

Totally pointless :)

About

a nodejs wrapper for a Novation Launchpad

Resources

Stars

16 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages