Note that analogRead() returns a number between 0 and 1. To convert that to the voltage, multiply it by E.getAnalogVRef().
@DrAzzy 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.
Note that analogRead() returns a number between 0 and 1. To convert that to the voltage, multiply it by E.getAnalogVRef().