It's actually already in GitHub - I added it this morning: https://github.com/espruino/EspruinoDocs/blob/master/devices/ADS1X15.js#L141
Although currently it only works with the non-differential.
Unfortunately it's not in the Gist, but if @LawrenceGrif can confirm your code works I can pull it into the main repo.
@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.
It's actually already in GitHub - I added it this morning: https://github.com/espruino/EspruinoDocs/blob/master/devices/ADS1X15.js#L141
Although currently it only works with the non-differential.
Unfortunately it's not in the Gist, but if @LawrenceGrif can confirm your code works I can pull it into the main repo.