Easiest way is to get a single SPI.send command to transfer a big chunk of data...
SPI.send
var sendData = new Uint8Array(256); sendData.fill(0); // now in the loop: var result = SPI2.send(sendData); // result will have 256 bytes in it
@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.
Easiest way is to get a single
SPI.send
command to transfer a big chunk of data...