1.0.0 • Published 3 years ago
yetanotherlaunchpad v1.0.0
YetAnotherLaunchpad
Yet another launchpad library
Usage
const Launchpad = require('yet-another-launchpad');
const lp = new Launchpad();
lp.on('buttonDown', function(x, y) {
console.log('buttonDown =>',x+','+y);
lp.colorLed(x, y, 0, 255, 0);
});
lp.on('buttonUp', function(x, y) {
console.log('buttonUp =>',x+','+y);
lp.colorLed(x, y, 0, 0, 0);
});
1.0.0
3 years ago