Looks like it's that chunk.set(new Uint8Array(buffer,p,C.OLED_CHUNK), 1); should really be chunk.set(new Uint8Array(buffer.buffer,p,C.OLED_CHUNK), 1);
chunk.set(new Uint8Array(buffer,p,C.OLED_CHUNK), 1);
chunk.set(new Uint8Array(buffer.buffer,p,C.OLED_CHUNK), 1);
In the browser:
(new Uint8Array((new Uint8Array(1000)).buffer,0,8)).length =8 (new Uint8Array((new Uint8Array(1000)),0,8)).length =1000
It's one of those times where I can't help thinking that Espruino does the more sensible thing, but it's not compliant with the spec.
@Gordon 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.
Looks like it's that
chunk.set(new Uint8Array(buffer,p,C.OLED_CHUNK), 1);
should really bechunk.set(new Uint8Array(buffer.buffer,p,C.OLED_CHUNK), 1);
In the browser:
It's one of those times where I can't help thinking that Espruino does the more sensible thing, but it's not compliant with the spec.