That's great, thanks! I've just pulled it in and I'll get it updated on the website this week.
Bit of a stupid mistake on my part! Nice idea keeping the gain as an int though, because we could then add a new function getVolts or something that can easily re-scale the value that's returned.
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.
That's great, thanks! I've just pulled it in and I'll get it updated on the website this week.
Bit of a stupid mistake on my part! Nice idea keeping the gain as an int though, because we could then add a new function
getVolts
or something that can easily re-scale the value that's returned.