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...
g.print()
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()
print()
thanks for you help
@Mrbbp started
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Hello,
i'm trying to work with arrayBuffer but i'm bad...
I'm using exemple in the graphics library at Internal Use
when i use the
g.print()
it does not produce an array of 0 and 1...but that...
i would like to send via Serial an array of row and colum as in the exemple of
print()
thanks for you help