Ok, the cutting edge builds now have this functionality in now (and better mapping of the discharge curve). So, if you:
Copy and paste this code into the left-hand side of the IDE
s.batFullVoltage = (analogRead(D3)+analogRead(D3)+analogRead(D3)+analogRead(D3))/4;
Then your battery percentage meter should then read perfectly.
I'd be interested to see how this works out. Longer term I'll probably tweak the battery widget so when the charge cable is removed, if the Bangle has been on charge for 2+ hours it'll automatically set itself up.
© Espruino, powered by microcosm.
Report a problem