Ok, try https://gist.githubusercontent.com/gfwilliams/da8f09f91c8d0011cbae/raw/1f9670fede9039851c64de6d29eae8e10250e662/ADS1X15.js
My problem - trying to copy paste code without testing :)
@Gordon 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.
Ok, try https://gist.githubusercontent.com/gfwilliams/da8f09f91c8d0011cbae/raw/1f9670fede9039851c64de6d29eae8e10250e662/ADS1X15.js
My problem - trying to copy paste code without testing :)