Easiest way is to get a single SPI.send command to transfer a big chunk of data...
var sendData = new Uint8Array(256);
// now in the loop:
var result = SPI2.send(sendData);
// result will have 256 bytes in it
© Espruino, powered by microcosm.
Report a problem