Well thank you all for your comments, you all made me realize it was doable hehe.. Here you go https://github.com/espruino/EspruinoDocs/pull/530
Maybe i can improve some stuff, like could probaly make the user send in the i2c instance so it can be used with other devices on the same pins ?
@Gustav 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.
Well thank you all for your comments, you all made me realize it was doable hehe..
Here you go
https://github.com/espruino/EspruinoDocs/pull/530
Maybe i can improve some stuff, like could probaly make the user send in the i2c instance so it can be used with other devices on the same pins ?