You are reading a single comment by @DrAzzy and its replies.
Click here to read the full conversation.
-
Maybe it should modify the constructor? "new Uint8Array(1,[3,4],"Hello");" sounds pretty reasonable, and it's also consistent with how you let multiple arguments go to the I2C.writeTo() for data - but there's no obvious way to do that for strings, which speaks in favor of the E.toString/toUint8Array..
The only odd thing is I currently have
E.toArrayBuffer
, which only works on strings. toString/toUint8Array would be a little different I guess.