Looks like it'd be easy to port the arduino library code, just looking at the code.
One nice thing with C and JS is, you can copy/paste most C (particularly arduino C which doesn't do much weird stuff ) into something that does JS syntax highlighting, and the basic structure will be valid JS - you just have to change the variable declarations, and rewrite the parts that are different between arduino and espruino (like SPI, which is way clunkier to use on arduino)
Though, often there is room for improvement after this.
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.
Looks like it'd be easy to port the arduino library code, just looking at the code.
One nice thing with C and JS is, you can copy/paste most C (particularly arduino C which doesn't do much weird stuff ) into something that does JS syntax highlighting, and the basic structure will be valid JS - you just have to change the variable declarations, and rewrite the parts that are different between arduino and espruino (like SPI, which is way clunkier to use on arduino)
Though, often there is room for improvement after this.