E.getAnalogVRef() is a bit confusing as that's the voltage regulator voltage - so it'll stay more or less constant 3.3v until the battery completely dies (although I believe the cut-off for the battery is ~3.3v) . analogRead(D3) is what you need, but that doesn't give you a value direct in volts so it's not that handy.
What I'm starting to wonder now, is did the watch originally stop working after something in particular? The only other time high power draw would happen is if the watch has got water inside it (especially salt water) - and that would explain it stopping working in the first place too.
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.
E.getAnalogVRef()
is a bit confusing as that's the voltage regulator voltage - so it'll stay more or less constant 3.3v until the battery completely dies (although I believe the cut-off for the battery is ~3.3v) .analogRead(D3)
is what you need, but that doesn't give you a value direct in volts so it's not that handy.What I'm starting to wonder now, is did the watch originally stop working after something in particular? The only other time high power draw would happen is if the watch has got water inside it (especially salt water) - and that would explain it stopping working in the first place too.