user103345
Member since Sep 2019 • Last active May 2020Most recent activity
-
-
I use a puck.js for sending midi controller over bluetooth. It worked for while (on 2 different computers, Win and OSX) but after a while, the puck stops been reliable. It sends the midi data and then stops working. It doesn't respond anymore and I have to upload the code again to be able to use it. Any idea what the problem could be? Is it possible the puck is defective?
I upgraded the firmware to 2.04 with no success.
This is the code:
var midi = require("ble_midi"); midi.init(); setWatch(function(e){ var isLong = (e.time-e.lastTime)>1; console.log(isLong); if (isLong) { midi.send(0, 101, 100); setTimeout(function() { midi.send(0, 101, 100); digitalPulse(LED1,1,5);}, 100); } else { midi.send(0, 126, 100); digitalPulse(LED2,1,5); } }, BTN, {repeat:true, debounce:50, edge:"falling"});
I think the quality of the battery helped. But definitely loading the code onto the dead memory helped to avoid uploading the code every time.