Avatar for user103345

user103345

Member since Sep 2019 • Last active Sep 2019
  • 1 conversations
  • 2 comments

Most recent activity

    • 3 comments
    • 156 views
  • Avatar for user103345

    Ok but sometimes only after 10 messages it stops responding.

  • Avatar for user103345

    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"});
    
Actions