Aaah, ya. Last I checked, analogRead read from the adc pin ( the only one it can read analog voltages on) regardless of what pin you told it to read. The adc is 0~1 volt only.
Now I understand - I used to send it this way and it complained:
Uncaught ReferenceError: "A0" is not defined
at line 1 col 12
.... All I had to do was send it like this analogRead(); to get it work!
NOTE: On the WeMos website they mention that max on the analog read is 3.2v... we sill see.
Thank you all!
© Espruino, powered by microcosm.
Report a problem