Rename USB scripts according to the recent USB command renames.

This commit is contained in:
László Monda
2017-11-08 23:19:21 +01:00
parent 4e8061eb63
commit 3f26aa68fb
5 changed files with 0 additions and 0 deletions

View File

@@ -0,0 +1,12 @@
#!/usr/bin/env node
const uhk = require('./uhk');
let areLedsEnabled = true;
const device = uhk.getUhkDevice();
setInterval(() => {
areLedsEnabled = !areLedsEnabled;
const brightnessPercent = areLedsEnabled ? 100 : 0;
device.write(uhk.getTransferData(new Buffer([uhk.usbCommands.setLedPwmBrightness, brightnessPercent])));
}, 500);