Sorry, only just saw this. It's a good idea, but a few JS people get very upset when they see me doing things that aren't standards compliant - it's why all the cool stuff gets shoved in E :)
I've just implemented E.toString/toUint8Array, as well as Uint8Arrays from I2C.readFrom, and multiple read/write support for OneWire (which would probably simplify your code a little).
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.
Sorry, only just saw this. It's a good idea, but a few JS people get very upset when they see me doing things that aren't standards compliant - it's why all the cool stuff gets shoved in
E
:)I've just implemented
E.toString/toUint8Array
, as well as Uint8Arrays fromI2C.readFrom
, and multiple read/write support for OneWire (which would probably simplify your code a little).