HOWEVER This is likely to change - specifically in order to make modules compatible with Tessel, Firmata etc, the I2C commands may change slightly in the next few weeks.
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.
Hi, Yes, that should be possible!
Once you have created a module, you just stick it in the node_modules folder of the SD card. There's an example of what it should look like here:
https://github.com/espruino/EspruinoDocs/blob/master/devices/DS18B20.js
HOWEVER This is likely to change - specifically in order to make modules compatible with Tessel, Firmata etc, the I2C commands may change slightly in the next few weeks.