I suggest that you provide 0.00, 0.25, 0.50, 0.75 and 1.00 Volts and analog read each of them. You should get something linearly related to the voltage applied. If not, analog read is not doing anything for you... (anymore? ...may it is already be 'gone' due to having given it > 1 or 3.3V?)
I assume you have a multi-meter to measure the voltage produced by the voltage divider established by the resistors R1, R2 and R3. If not - but with decent tolerances of the resistors (2..5%) - you can guess by the position of the wiper about what voltage between 0 and 1 Volt to expect.
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.
I suggest that you provide 0.00, 0.25, 0.50, 0.75 and 1.00 Volts and analog read each of them. You should get something linearly related to the voltage applied. If not, analog read is not doing anything for you... (anymore? ...may it is already be 'gone' due to having given it > 1 or 3.3V?)
How to create these voltages?
I assume you have a multi-meter to measure the voltage produced by the voltage divider established by the resistors R1, R2 and R3. If not - but with decent tolerances of the resistors (2..5%) - you can guess by the position of the wiper about what voltage between 0 and 1 Volt to expect.