I think ideally the firmware would force E.getBattery() to be monotonic, i.e. remember the last value, and only update to lower values while discharging, and only update to higher values while charging?
I guess we could do that... It would smooth things out a lot (or at least we could update it only if it changed by 5% or more?)
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 guess we could do that... It would smooth things out a lot (or at least we could update it only if it changed by 5% or more?)