You are reading a single comment by @Gordon and its replies. Click here to read the full conversation.
  • 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);

    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.

About

Avatar for Gordon @Gordon started