You are reading a single comment by @Mrbbp and its replies. Click here to read the full conversation.
  • Hello,

    i'm trying to work with arrayBuffer but i'm bad...
    I'm using exemple in the graphics library at Internal Use

    require("Font4x7").add(Graphics);
    var g = Graphics.createArrayBuffer(5,7,1, {zigzag:true});
    g.setFont4x7();
    g.drawString("hello",compteur,0);
    
    Graphics.prototype.print = function() {
      for (var y=0;y<this.getHeight();y++)
        console.log(new Uint8Array(this.buffer,this.getWidth()*y,this.getWidth()));
    };
    

    when i use the g.print()it does not produce an array of 0 and 1...
    but that...

    new Uint8Array([112, 240, 199, 7, 4])
    new Uint8Array(5)
    new Uint8Array(5)
    new Uint8Array(5)
    new Uint8Array(5)
    new Uint8Array(5)
    new Uint8Array(5)
    

    i would like to send via Serial an array of row and colum as in the exemple of print()

    thanks for you help

About

Avatar for Mrbbp @Mrbbp started