Thanks! just found a small bug in this (CONFIG. was missing in some lines). I actually put a gist here.
And you can use it like:
var ads = require("https://gist.githubusercontent.com/gfwilliams/da8f09f91c8d0011cbae/raw/5a9e01ce6187f0243f4944b57c0bc1d9f4658c1f/ADS1X15.js").connect(I2C1);
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.
Thanks! just found a small bug in this (
CONFIG.
was missing in some lines). I actually put a gist here.And you can use it like: