lightpad-mk2

0.0.2 • Public • Published

Lightpad MK2

A utility for manipulating the LED lights on Novation's Launchpad MK2.

Usage

Get started

Install and require.

$ npm install lightpad-mk2

In your file:

var pad = require('lightpad-mk2')

Simple on/off

To turn on and off the LED for one of the buttons, use the on and off methods with x and y coordinates and an optional color. Numbering starts in the botton right corner.

pad.on(1, 3, 60)
// turns on the button in the first column, three from the bottom
pad.on(1, 3)
// does the exact same thing; color defaults to 60 (red) when not designated
pad.off(1, 3)
// turns off the same button

Package Sidebar

Install

npm i lightpad-mk2

Weekly Downloads

2

Version

0.0.2

License

MIT

Last publish

Collaborators

  • rodmachen