Well, #2 should work - or: spi.send(new Uint8Array(sData.buffer));
Is it possible that the byte ordering is wrong? I'm not 100% sure but does #2 have the same result as:
for(i = 0; i < sData.length; i++)
The other option (faster than #1) may be:
But if #2 (or some variant) will work, that would be ideal.
© Espruino, powered by microcosm.
Report a problem