Finally got it to work - perhaps obvious in retrospect!
E.mapInPlace( new Uint8Array(img.buffer, chunks*CHUNKSIZE*img.bpp/8, remnt), g.chunkbuf, img.palette, img.bpp ); spi.write(new Int8Array(g.chunkbuf.buffer,0,remnt*2));
@jeffmer 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.
Finally got it to work - perhaps obvious in retrospect!