No problem - by default g.buffer is an untyped arraybuffer, so ideally you make it into something typed:
var g = Graphics.createArrayBuffer(8,8,1);
// ...
var a = new Uint8Array(g.buffer);
a[0]
// you can still change 'g' and the values in 'a' will change too
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.
No problem - by default
g.buffer
is an untyped arraybuffer, so ideally you make it into something typed: