Just to add, you could also use E.toUint8Array() to prepare the array. You can do things like:
E.toUint8Array()
>E.toUint8Array([[1,2,3],[4,5,6],[7,8,9]]) =new Uint8Array([1, 2, 3, 4, 5, 6, 7, 8, 9]) >E.toUint8Array([{data:[1,2,3], count:4},[7,8,9]]) =new Uint8Array([1, 2, 3, 1, 2, 3, 1, 2, 3, 1, 2, 3, 7, 8, 9])
@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.
Just to add, you could also use
E.toUint8Array()
to prepare the array. You can do things like: