【文件属性】:
文件名称:node-novation-launchpad:Novation Launchpad 的 nodejs 包装器
文件大小:457KB
文件格式:ZIP
更新时间:2021-06-24 23:12:14
CoffeeScript
节点更新启动板
Novation Launchpad 的 nodejs 包装器。
npm install novation-launchpad
它允许您将 LED 网格视为 8x8 帧缓冲区,并为其设置动画。
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
您还可以从打击垫捕获按钮向上/向下输入。
launchpad = requ
【文件预览】:
node-novation-launchpad-master
----.gitignore(12B)
----README.md(801B)
----examples()
--------simple.coffee(228B)
--------slideshow.coffee(799B)
--------video.gif(454KB)
----package.json(346B)
----index.js(71B)
----lib()
--------launchpad.coffee(2KB)