Unfortunately any call to analogRead seems to return 1, regardless of the pin. It doesn't even currently check whether a pin is valid, analogRead(100) and analogRead() also return 1.
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.
Unfortunately any call to analogRead seems to return 1, regardless of the pin. It doesn't even currently check whether a pin is valid, analogRead(100) and analogRead() also return 1.