Avatar for user103345

user103345

Member since Sep 2019 • Last active May 2020
  • 1 conversations
  • 3 comments

Most recent activity

    • 9 comments
    • 3,592 views
  • in Puck.js, Pixl.js and MDBT42
    Avatar for user103345

    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.

  • in Puck.js, Pixl.js and MDBT42
    Avatar for user103345

    Ok but sometimes only after 10 messages it stops responding.

  • in Puck.js, Pixl.js and MDBT42
    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