• Ok,

    I now have some code which crashes the BBC micro:bit within seconds:

    var Gfx = Graphics.createArrayBuffer(5,5,1);
    Gfx.flip = function () { show(this.buffer); };
    
    function currentXYZ () {
      return [2,0,5];
    }
    
    function updateDisplay () {
      var XYZ = currentXYZ();
    
      Gfx.clear();
      Gfx.drawLine(0,4, 0,4-Math.max(0,Math.min(4,XYZ[0])));
      Gfx.drawLine(2,4, 2,4-Math.max(0,Math.min(4,XYZ[1])));
      Gfx.drawLine(4,4, 4,4-Math.max(0,Math.min(4,XYZ[2])));
      Gfx.flip();
    }
    setInterval(updateDisplay,100);
    

    Does anybody have any idea why?

    [EDIT] if the WebBT connection is kept, but the display runs havoc, the IDE's terminal sometimes issues New interpreter error: MEMORY_BUSY. Does this message help you?

    Thanks in advance for your effort!

    Kind regards,

    Andreas Rozek

About