Copy and paste this code into the left-hand side of the IDE
(function() {
var s=require("Storage").readJSON("setting.json");
s.batFullVoltage = (analogRead(D3)+analogRead(D3)+analogRead(D3)+analogRead(D3))/4;
require("Storage").writeJSON("setting.json",s);
})();
load();
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 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.
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
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.