Hi All,
Just a quick one with regards to analogRead() values I'm getting back from pin A5 on the Pico:
const solarIn = analogRead(A5); const dataRead = () => {return (solarIn * 3.3) / 65536;};
-using the terminal for querying gives me an output between 0 & 1:
>analogRead(A5); =0.99879453727 >analogRead(A5); =0.41113908598 >analogRead(A5); =0.00073243305
any ideas? I'm sure I'm doing something wrong but can't figure out where...
Regards, George M.
@GeorgeM 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.
Hi All,
Just a quick one with regards to analogRead() values I'm getting back from pin A5 on the Pico:
0.00005031789 or 2.45872911421e-8
-using the terminal for querying gives me an output between 0 & 1:
any ideas? I'm sure I'm doing something wrong but can't figure out where...
Regards,
George M.